Knowledge Base

PRB: ACTIVATE WINDOW Command Not Working for Toolbars

Article ID: 135564

Article Last Modified on 1/23/2004


APPLIES TO


This article was previously published under Q135564

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:

138969 HOWTO: Include Report Toolbars in a Distributed Application


Additional query words: 3.00 VFoxWin

Keywords: KB135564