Widgets in VB4 
Author Message
 Widgets in VB4

How can i put widgets ( yellow box under buttons on tools bars) in VB
4.0 16 bits ?
Thanks
___________________________________________
Jos Rub



Sun, 13 Sep 1998 03:00:00 GMT  
 Widgets in VB4

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



Tue, 15 Sep 1998 03:00:00 GMT  
 Widgets in VB4
Paul recomend a process VERY similar to one I have used in the past.
I ran into a problem though. There is no 'MouseMove' event for combo boxes,
so I was unable to handle them correctly (VB3). Any suggestions?
has this event been added in VB4???

Philip.

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




Fri, 18 Sep 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Cal Widget 32bit / VB4 - Try This!

2. Sheridan Designer Widgets/Data Widgets

3. VB4 - 16BIT Sheridan Calendar Widgets (16bit OCX)

4. Possible use of Sheridan's data widgets in Access 97/2000

5. ANN: Instrumentation Widgets 3.0 is published

6. User Control Fires an Event Twice with Far Point Widgets

7. VB6, Citrix, Sheridan's Designer Widgets / ActiveToolbars

8. Data Widgets

9. sheridans data widgets - combo box problem

10. VB3 PRO owners..windows/system crash...looking for LOST FILES (VB and DATA WIDGETS)

11. Colouring Data Widget cells

 

 
Powered by phpBB® Forum Software