Quote:
>How can i put widgets ( yellow box under buttons on tools bars) in VB
>4.0 16 bits ?
>Thanks
>___________________________________________
>Jos Rub
It's really not that diffcult to do I can only give you the basics
of what to do and when because I don't have the actually code handy,
but if you run into problems just let me know and I getit out for you.
First add a timer control and set its interval to about 1 sec. or
however long you want it to take for thetool tips to appear.
Then in each of the buttons MouseMove events set the timer's enable
to true and set a variable ButtonSelected to a unique number
On the picture box or whatever the buttons are placed on's MouseMove
Event Turn the timer's enabled property off. On the Form's MouseMove
turn it off to. On the Form's Load property turn the timer off and
make the txtTooltip (a text box that is used to display the tool tip)
Visible to False.
In the Timer's event call a function called ToolTips.
In the ToolTips function check the value of ButtonSelected (oh I
forgot to mention that this is a global of module level variable)
Then when you check it against each of the unique numbers that
can be assigned to it. You can set the value of Top, Left properties
based on the position of the button. You can set the text property
to whatever you want displayed for the particular button and the
width property equal to the length of the text property. As a little
side bit I usually make it equal to the length plus two space and
the txtToolTips is set to Center Justify the text.
Well that's all there is to it basically again if you need more
help let me know and I find the actually code for it. Later
Paul