|
-
May 1st, 2001, 03:27 AM
#1
Thread Starter
Registered User
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!
-
May 1st, 2001, 06:58 AM
#2
New Member
http://www.vbaccelerator.com/
You might find something there....
-
May 1st, 2001, 07:13 AM
#3
Thread Starter
Registered User
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.
-
May 1st, 2001, 07:25 AM
#4
Frenzied Member
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...*
-
May 1st, 2001, 07:29 AM
#5
Thread Starter
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|