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



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 2.0
  • Microsoft Visual Basic Standard Edition for Windows 3.0
  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0
  • Microsoft Visual Basic Standard Edition for Windows 1.0

This article was previously published under Q76984

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.

Modification Type:MajorLast Reviewed:12/12/2003
Keywords:kbprb KB76984