This is possible?

Post Reply
User avatar
Eroni
Posts: 71
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil
Contact:

This is possible?

Post by Eroni »

Change bitmap when mouse cursor is over button in class ttoobar ?

Regards

Eroni
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Eroni,

You need to modify the Class TToolBar in order to do it:

Code: Select all

   ...
   do case

      case nCode == TTN_GETDISPINFO

                ::ChangeBitmap( <nButton>, <nImage> )
                ...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Eroni
Posts: 71
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil
Contact:

Post by Eroni »

Antonio,
Thank you so much, I changed ttoolbar class and add some methods to works with change button bitmaps, when is mouse over and change bitmap insted use inactive button.

Take a look, do you want that I send you the code changed?
Image
Image

Regards[/img][/url]
Post Reply