Click to See Complete Forum and Search --> : Adding hotimagelist to toolbar in VB6
hansel
December 26th, 1999, 07:15 AM
I have created a SDI project. I modified the properties of the toolbar to flat-style, with border. I noticed that there is a provision for a hotimagelist, however, the combobox selection only shows the default imagelist. How can I add another imagelist to the project and set this to be the hotimagelist of the toolbar.
I effect I want is very much like IE4/IE5 browser-- i.e. when the mouse hovers over a toolbar button there is a change in the icon to indicate that it currently has focus.
Thanking you in advance.
Sincerely,
Hansel
Crazy D
December 26th, 1999, 09:52 AM
Haven't used it, but don't you just have to add a second imagelist to your form, and put in there the hotimages?
Crazy D :-)
"One ring rules them all"
Rippin
December 26th, 1999, 03:13 PM
That is correct: Just add an additional imagelist control to your form and add the "hot" images there. The only thing to be careful of is...Since the toolbar only allows you to relate one image index/key to each button, you must make sure that either A.) The "hot" images are in the same order as the "normal" images so that the index values match up or...B.) Just make sure each of the "hot" images have the same value for their key as the related "normal" image. By using this method, it doesn't matter what order the images are in (in the imagelist) just as long as their key's match. It also makes changing the images alot easier also.
Hope that helps,
Rippin
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.