Results 1 to 5 of 5

Thread: How to create cool (Corel like) Buttons ?

  1. #1

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    Exclamation How to create cool (Corel like) Buttons ?

    Hi! Does someone know how to add MouseOver effects as they can be seen in Corel to Buttons using just the winapi?
    The interesting thing in Corel is that even in the message boxes and OpenFile dialogs there are these tweaked buttons. But how to do that looks quite mysterious to me. It would already be enough if I could use them on my form. Maybe someone knows a good url link?

    Thanks!

  2. #2
    New Member
    Join Date
    Apr 2001
    Location
    later
    Posts
    3
    http://www.vbaccelerator.com/

    You might find something there....

  3. #3

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    when u go with the mouse over it ("Nein"-Button):




    it just has 2hover" effects. Maybe it has something to do with the SendMessage function.
    Last edited by Olly; May 1st, 2001 at 07:16 AM.

  4. #4
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    Does this effect occur in Win95 or is it NT only?

    In NT a control sends a WM_NOTIFY (&H4E) message to its parent form when certain events occur. One of these is the "hover" event, NM_HOVER (-13) so what I imagine is happening is that the messagebox has been subclassed and whenever a WM_NOTIFY is recieved with the NMHDR structure's code being NM_HOVER it sends a message to the window pointed to by the NMHDR's hWndFrom member to change the button style.

    Tricky, but not impossible to emulate in VB....
    *goes away to think about this...*

  5. #5

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252
    many thanks
    I think this is very interesting because you can change the whole look of a program without messing around with own buttons and boxes.
    It looks like the hover effects on the comboboxes in the examples of vbaccelerator but on buttons.

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