Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Creating a Toolbar
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.



Report this thread to moderator Post Follow-up to this message
Old Post
Jim Richards
05-30-05 01:55 AM


Re: Creating a Toolbar
"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





Report this thread to moderator Post Follow-up to this message
Old Post
MikeD
05-30-05 01:55 AM


Re: Creating a Toolbar
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.

"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
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Jim Richards
05-30-05 01:55 AM


Re: Creating a Toolbar
"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.



Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Johnson [MVP: VB]
05-31-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.