PRB: ToolBox/Color Palette Menus Lose Focus After Single ESC

Last reviewed: June 21, 1995
Article ID: Q76984
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, versions 2.0 and 3.0
- Microsoft Visual Basic programming system for Windows, version 1.0

SYMPTOMS

The ToolBox and Color Palette system menus lose their focus after only one press of the ESC key rather than two. Other system menus lose focus after two presses of ESC.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start Visual Basic.

  2. Click the ToolBox or the Color Palette.

  3. Press ALT+MINUS to open its system menu.

  4. Press ESC to close its system menu.

  5. Press SPACEBAR to drop the system menu again.

Pressing SPACEBAR does not drop the system menu as it would in other Windows system menus. The focus on these two particular system menus is lost with one press of ESC. This is not a problem, but a design feature of the Visual Basic ToolBox and Color Palette windows.

This feature is unlike other Windows system menus in which two ESC key presses are required to remove the focus. (The first ESC closes the system menu, but the focus remains on it. The second ESC returns the focus to the original window.) The ToolBox and Color Palette system menus are not regular Windows system menus, and function differently.


Additional reference words: 1.00 2.00 3.00
KBCategory: kbenv kbprg kbprb
KBSubcategory: EnvtDes


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.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.