Microsoft KB Archive/149300

= How to Use ToolTips w/ Objects that Do/Do Not Have ToolTipText =

Article ID: 149300

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q149300



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.



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.</li></ol>

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.

Additional query words: VFoxWin

Keywords: KB149300

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.