Code Comments
Programming Forum and web based access to our favorite programming groups.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.
Post Follow-up to this message"Jim Richards" <JWRichards@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
Post Follow-up to this messageMike, 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. "MikeD" <nobody@nowhere.edu> wrote in message news:u6KPrTJZFHA.3356@TK2MSFTNGP15.phx.gbl... > > "Jim Richards" <JWRichards@satx.rr.com> wrote in message > news:36ome.11317$j51.5144@tornado.texas.rr.com... > > > 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 > > > >
Post Follow-up to this message"Jim Richards" <JWRichards@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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.