Page 1 of 1

This is possible?

Posted: Wed Aug 01, 2007 11:33 pm
by Eroni
Change bitmap when mouse cursor is over button in class ttoobar ?

Regards

Eroni

Posted: Thu Aug 02, 2007 11:21 am
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> )
                ...

Posted: Fri Aug 03, 2007 7:01 pm
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]