CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    15

    Adding hotimagelist to toolbar in VB6

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: Adding hotimagelist to toolbar in VB6

    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"

  3. #3
    Join Date
    Dec 1999
    Location
    Texas
    Posts
    96

    Re: Adding hotimagelist to toolbar in VB6

    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


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

Featured