|
-
Aug 13th, 2001, 08:40 PM
#1
Thread Starter
Fanatic Member
Non rectangular button
How to create a non rectangular button that still have all the properties and event and the normal button?
Thanks.
-
Aug 13th, 2001, 09:18 PM
#2
Fanatic Member
Attached is an example that may help you.
-
Aug 13th, 2001, 09:23 PM
#3
Hyperactive Member
lol, the border change one is creative
-
Aug 13th, 2001, 09:47 PM
#4
Fanatic Member
Those aren't really changed shape wise. They just have a picture that fakes it. If you want to actually change the window and clipping region to make the button round, you can use the region APIs to make it for you. This isn't perfect, but you can see that the button is really round here. You'll just need to play with an image a bit, or use other regions. There's also a rectangular region function (CreateRectRgn), and one to make rounded corner rectangular regions (CreateRoundRectRgn).
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
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
|