Microsoft KB Archive/161147

= BUG: ToolTips Disappear when Timer Event Fires =

Article ID: 161147

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q161147



SYMPTOMS
When a Microsoft Visual FoxPro 5.0 form contains ToolTips and a timer control, any ToolTip that is currently displayed disappears when the timer control fires a timer event.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
Use the following steps in Visual FoxPro 5.0. You can also do the process in Visual FoxPro 3.0b in order to appreciate the changed behavior in Visual FoxPro 5.0.

 Create a form in the visual desktop using the Form Designer. On the form place the following controls:

 a label

name = 'Label1'

caption = any text a textbox

name = 'Textbox1'

controlsource = thisform.mytext

ToolTipText = any wording for that property's caption  a timer control

Interval = 1000

Timer-event method containing the following: ThisForm.Label1.Caption = TIME   a command button

Click method that issues the command ThisForm.Release  </li> Add a custom property named MyText to the form.</li> Set the ShowTips property of the form to True (.T.).</li> Run the form. Position the cursor over textbox1. Observe the ToolTip.</li> In the Visual FoxPro 5.0 form, change the interval of the timer to 5000.</li> Run the form again. Position the cursor over textbox1. When the ToolTip is cleared move the mouse very slightly.</li></ol>

The ToolTip on the Visual FoxPro 3.0b form persists as long as the cursor is over textbox1. The ToolTip on the Visual FoxPro 5.0 form clears when the timer fires. With the 1000ms interval it can never be restored. With the 5000ms interval moving the cursor with the slightest MouseMove event restores the ToolTip.

Additional query words: kbvfp500 kbvfp500a kbvfp600

Keywords: kbbug kbprogramming KB161147

-

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

© Microsoft Corporation. All rights reserved.