Microsoft KB Archive/134309

= PRB: Timer Event Does Not Fire If Timer Object Is on a Toolbar =

Article ID: 134309

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q134309



SYMPTOMS
The Timer event of a Timer object on a toolbar does not fire.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 On the FoxPro File menu, click New, and then Class. Then select New File from the New dialog box. Type tbrTestbar for the Class Name. Select Toolbar from the Based On menu. Type test for the Store In option. Click OK. Select the Timer Object from the Form Controls Toolbar, and then click the new toolbar in the Class Designer window to place it on the toolbar. Go to the Properties window. If it is not already visible, use the right mouse button to click the new timer object on the toolbar. Then select Properties from the menu. Set the Interval property of the Timer to 200.  Double-click the Timer event to open the editor for that method. Type the following command in the code window: WAIT WINDOW "Timer Event fired" </li> On the File menu, click Close to close the Timer event code window.</li> On the File menu, click Close to close the Class Designer. Click Yes to save the changes.</li>  Type the following code in the Command window to create an instance of the toolbar: SET CLASSLIB TO test.vcx tbrTimer = CREATEOBJECT('tbrTestbar') tbrTimer.Show  && to verify you successfully created the Toolbar </li></ol>

The WAIT WINDOW is never displayed because the Timer event is not firing.

Additional query words: 3.00 VFoxWin

Keywords: KB134309

-

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

© Microsoft Corporation. All rights reserved.