PRB: ACTIVATE WINDOW Command Not Working for Toolbars (135564)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
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
Modification Type: | Major | Last Reviewed: | 1/23/2004 |
---|
Keywords: | KB135564 |
---|
|