Home All Groups Group Topic Archive Search About
Author
29 May 2005 6:46 PM
Jim Richards
Hello. Using VB6. I have added the Toolbar Control and the ImageList
Controls to my form. Then using the ImageList Properties and the Images tab
at the top I inserted 7 pictures and the image count showed 7 items.Then I
use the Custom Property of the Toolbar Object (General Tab)and tell the
Toolbar Control where to find the images for the buttons that I am about to
add. I then select the Buttons Tab at the top and click on Insert Button.
The Index goes from grayed out to the number 1 BUT the Image value just to
the right of the "Tool Tip Text" is still grayed out and I am unable to
associate an image in the ImageList control with this button. I must have
done something wrong because it should all me to type in the appropriate
image index value here which will associate one of the images with this
button. Help please. TIA, Jim.

Author
29 May 2005 9:25 PM
MikeD
Show quote Hide quote
"Jim Richards" <JWRicha***@satx.rr.com> wrote in message
news:36ome.11317$j51.5144@tornado.texas.rr.com...
> Hello. Using VB6. I have added the Toolbar Control and the ImageList
> Controls to my form. Then using the ImageList Properties and the Images
> tab at the top I inserted 7 pictures and the image count showed 7
> items.Then I use the Custom Property of the Toolbar Object (General
> Tab)and tell the Toolbar Control where to find the images for the buttons
> that I am about to add. I then select the Buttons Tab at the top and click
> on Insert Button. The Index goes from grayed out to the number 1 BUT the
> Image value just to the right of the "Tool Tip Text" is still grayed out
> and I am unable to associate an image in the ImageList control with this
> button. I must have done something wrong because it should all me to type
> in the appropriate image index value here which will associate one of the
> images with this button. Help please. TIA, Jim.


Custom Property?  I have no idea what property you could be talking about.
A Toolbar has ImageList, DisabledImageList, and HotImageList properties (the
VB5 version only has ImageList) for binding an ImageList control.  You must
set the ImageList property to assign an image at design-time.  You may have
set one of the other two.

Exactly what Toolbar control are you using?  The one from Windows Common
Controls or is it a 3rd-party control?

Oh. Wait. I know what you mean now. You're talking about "(Custom)" in the
Properties window, right?  That's not a property.  It's just a way to show
the Property Page for a control.

--
Mike
Microsoft MVP Visual Basic
Are all your drivers up to date? click for free checkup

Author
29 May 2005 9:57 PM
Jim Richards
Mike, I' using the one from Windows Common Controls. I clicked on
Project->Components->and then checked "Microsoft Windows Common Controls 6.0
(SP3). Does this info help? Jim.

Show quoteHide quote
"MikeD" <nob***@nowhere.edu> wrote in message
news:u6KPrTJZFHA.3356@TK2MSFTNGP15.phx.gbl...
>
> "Jim Richards" <JWRicha***@satx.rr.com> wrote in message
> news:36ome.11317$j51.5144@tornado.texas.rr.com...
>> Hello. Using VB6. I have added the Toolbar Control and the ImageList
>> Controls to my form. Then using the ImageList Properties and the Images
>> tab at the top I inserted 7 pictures and the image count showed 7
>> items.Then I use the Custom Property of the Toolbar Object (General
>> Tab)and tell the Toolbar Control where to find the images for the buttons
>> that I am about to add. I then select the Buttons Tab at the top and
>> click on Insert Button. The Index goes from grayed out to the number 1
>> BUT the Image value just to the right of the "Tool Tip Text" is still
>> grayed out and I am unable to associate an image in the ImageList control
>> with this button. I must have done something wrong because it should all
>> me to type in the appropriate image index value here which will associate
>> one of the images with this button. Help please. TIA, Jim.
>
>
> Custom Property?  I have no idea what property you could be talking about.
> A Toolbar has ImageList, DisabledImageList, and HotImageList properties
> (the VB5 version only has ImageList) for binding an ImageList control.
> You must set the ImageList property to assign an image at design-time.
> You may have set one of the other two.
>
> Exactly what Toolbar control are you using?  The one from Windows Common
> Controls or is it a 3rd-party control?
>
> Oh. Wait. I know what you mean now. You're talking about "(Custom)" in the
> Properties window, right?  That's not a property.  It's just a way to show
> the Property Page for a control.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>
>
>
Author
31 May 2005 3:30 PM
Jeff Johnson [MVP: VB]
"Jim Richards" <JWRicha***@satx.rr.com> wrote in message
news:36ome.11317$j51.5144@tornado.texas.rr.com...

> I then select the Buttons Tab at the top and click on Insert Button. The
> Index goes from grayed out to the number 1 BUT the Image value just to the
> right of the "Tool Tip Text" is still grayed out and I am unable to
> associate an image in the ImageList control with this button. I must have
> done something wrong because it should all me to type in the appropriate
> image index value here which will associate one of the images with this
> button.

I can't duplicate this problem. Are you positive that on the General tab of
the Properties dialog you have a selection (i.e., something other than
<None>) in the Image List dropdown? Because there are three image lists you
can set but I believe Image List is mandatory.

Bookmark and Share