PRB: ACTIVATE WINDOW Command Not Working for Toolbars

ID: Q135564

3.00 WINDOWS kbprg kbprb

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, version 3.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.

STATUS

Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.

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:

   ARTICLE-ID: Q138696
   TITLE     : HOWTO: Including Report Toolbars in a Distributed
               Application

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


Last Reviewed: April 21, 1998
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.