KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q135564: PRB: ACTIVATE WINDOW Command Not Working for Toolbars

Article: Q135564
Product(s): Microsoft FoxPro
Version(s): 3.0,5.0,6.0
Operating System(s): 
Keyword(s): 
Last Modified: 26-APR-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 6.0 
-------------------------------------------------------------------------------

SYMPTOMS
========

The ACTIVATE WINDOW command does not work with toolbars. This command:

     ACTIVATE WINDOW "Standard"

results in thie following error message:

  Window "STANDARD" has not been defined

None of the toolbars can be activated with the ACTIVATE WINDOW command.

RESOLUTION
==========

If it is necessary to call toolbars programmatically, use the KEYBOARD command:

     KEYBOARD '{ALT+V}ts{SPACEBAR}{ENTER}'

To determine the exact syntax for a particular toolbar, click Macros on the
Program menu and select Record.

Please note that Visual FoxPro's macro recorder does not record movements of the
mouse; therefore, you need to use the keyboard to created the macro.

MORE INFORMATION
================

Once a toolbar is open, the HIDE WINDOW, SHOW WINDOW, and ACTIVATE WINDOW
commands will work. This is because the toolbar now exists in memory.

REFERENCES
==========

If you need to distribute the Report Control toolbar with the EXE, please see
the following article in the Microsoft Knowledge Base:

  Q138696 HOWTO: Including Report Toolbars in a Distributed Application

Additional query words: 3.00 VFoxWin

======================================================================
Keywords          :  
Technology        : kbVFPsearch kbAudDeveloper kbVFP300 kbVFP500 kbVFP600
Version           : :3.0,5.0,6.0

=============================================================================

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.

Copyright Microsoft Corporation 1986-2002.