Results 1 to 4 of 4

Thread: Non rectangular button

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613

    Non rectangular button

    How to create a non rectangular button that still have all the properties and event and the normal button?

    Thanks.

  2. #2
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Sydney Australia
    Posts
    804
    Attached is an example that may help you.

  3. #3
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    lol, the border change one is creative

  4. #4
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    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
  •  



Click Here to Expand Forum to Full Width