The information in this article applies to:
- Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b
SUMMARY
This article describes:
- How to use ToolTips with objects that have the ToolTipText property
- How to make ToolTips appear with other objects, such as images or option
groups, that don't have the ToolTipText property.
ToolTips is the pop-up text that appears when the mouse pointer pauses or
passes slowly over a control such as a button on a toolbar or a text box.
ToolTips applies only to check boxes, combo boxes, command buttons, edit
boxes, grids, list boxes, option buttons, shapes, spinners, and text boxes.
MORE INFORMATION
Steps to Use ToolTips with Objects that Have ToolTipText Property
- Create a new form. Set the form's ShowTips property to true (.T.). Add
the Customer table to the Data Environment.
- Place a text box on the form. Set the text box ControlSource property to
Cust_id, and in its ToolTipText property, type:
Each customer has a unique identification number
- Run the form. Place the mouse pointer on the text box. The ToolTips
pop-up text appears.
Steps to Use ToolTips with Objects that Don't Have ToolTipText Property
- Open a form, and place an Image on it. Double-click the Picture property
of the Image and assign a bitmap to it.
- Add a Shape to the form, and set the Shape's BackStyle property to
0 - Transparent. Position the Shape over and around the Image, leaving
some white space between the Image and the borders of the Shape. Set the
Shape's BorderStyle property to 0 - Transparent. In the Shape's
ToolTipText property, type:
This is a bitmap
- Run the form. Place the mouse pointer on the bitmap Image, and the
ToolTips pop-up text appears.
NOTE: Because the Image is under the Shape, it will not receive mouse
events. Therefore, you need to place all code in the appropriate event
procedure for the Shape instead of for the Image.
|