PRB: HIDE WINDOW ALL Command Affects User-Defined ToolbarsID: Q135565 The information in this article applies to:
SYMPTOMSThe HIDE WINDOW ALL command hides user-defined toolbars as well as other windows. The SHOW WINDOW ALL command shows user-defined toolbars as well as other windows. System-defined toolbars are not affected by HIDE WINDOW ALL or SHOW WINDOW ALL.
WORKAROUNDOnce the user's toolbars have been hidden with the HIDE WINDOWS ALL command, if they are to be visible, issue a command to SHOW WINDOW <window name> where window name is the name of one of the toolbars. Issue as many SHOW WINDOW commands as are necessary to restore the user-created toolbars.
STATUSThis behavior is by design.
MORE INFORMATIONDevelopers using the command HIDE WINDOW ALL and expecting their toolbars to stay visible may run into trouble. The toolbars are essentially the same as any user-defined window and are thus subject to being hidden. The System toolbars, on the other hand, are a special instance and as such remain visible unless a HIDE WINDOW command is used with the name of the window For a list of the correct names of the System toolbars, please see the Visual FoxPro Language Reference or the SHOW WINDOW topic in the Help manu.
Steps to Reproduce BehaviorEnter the following code into a Visual FoxPro program. Then run that program to create a toolbar on the desktop. *** Program Tooltest.prg ************** PUBLIC oToolbar oToolbar = CREATEOBJECT("UDToolbar") oToolbar.show() DEFINE CLASS UDToolbar AS Toolbar ENDDEFINE
*** End program Tooltest.prg********************
Once the toolbar is visible, in the Command window enter this command:
followed by
Additional reference words: 3.00 VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral
|
Last Reviewed: August 24, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |