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

Last reviewed: August 4, 1995
Article ID: Q134309
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SYMPTOMS

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

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. On the FoxPro File menu, click New, and then Class. Then select New File from the New dialog box.

  2. Type tbrTestbar for the Class Name. Select Toolbar from the Based On menu. Type test for the Store In option. Click OK.

  3. 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.

  4. 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.

  5. Set the Interval property of the Timer to 200.

  6. 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"

  7. On the File menu, click Close to close the Timer event code window.

  8. On the File menu, click Close to close the Class Designer. Click Yes to save the changes.

  9. 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
    
    
The WAIT WINDOW is never displayed because the Timer event is not firing.


Additional reference words: 3.00 VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgToolbar


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 4, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.