|
-
Nov 4th, 2000, 04:47 AM
#1
Thread Starter
Lively Member
Hi guys,
How do i create forms of irregular shapes?
-
Nov 4th, 2000, 05:03 AM
#2
Frenzied Member
Use the
Code:
Public Declare Function CreateEllipticRgn Lib "gdi32" Alias "CreateEllipticRgn" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Public Declare Function CreateRoundRectRgn Lib "gdi32" Alias "CreateRoundRectRgn" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
Public Declare Function CombineRgn Lib "gdi32" Alias "CombineRgn" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Public Declare Function SetWindowRgn Lib "user32" Alias "SetWindowRgn" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
API Functions. The CombineRgn API is used to crate more complex regions.
Code:
'example
SetWindowRgn Form1.hWnd, CreateEllipticRgn(10, 10, 550, 550), True
'combine the numbers according to your needs
-
Nov 4th, 2000, 05:34 AM
#3
Monday Morning Lunatic
Do a search for "Alex Vallat VB Shaped Form Creator".
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 4th, 2000, 08:17 AM
#4
Junior Member
i made lovely form for using
download it from
www.samawat.4mg.com
its name is Neo.zip
bUe
-
Nov 4th, 2000, 08:32 AM
#5
Fanatic Member
here is the link to get the shapped form creator, i use it it is free and great
http://www.comports.com/AlexV/VBSFC.html
hope it helps
Merlin ?
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
[ Galahtech.com] | [ My Site] | [ Fishsponge] | [ UnixForum.co.uk]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|