The Drop Down Menu

Presence

The menu appears when the user presses Enter while the widget has keyboard focus or presses any mouse button while the pointer is on the value area.  It disappears when a choice is made or choosing is aborted, as described under "Function".

Function

For menu invocation, selection, choosing, and aborting, mouse and keyboard actions can be used interchangeably.  At any point, either can be used, regardless of how the present state was arrived at.

The current choice initially appears selected (raised) on the menu.  The selection can be changed either by pressing the Up Arrow and Down Arrow keys or by moving the mouse pointer over the menu while any mouse button is pressed.

The current selection can be chosen either by pressing the Enter key or by releasing any mouse button while the pointer is on the menu.  Any item can be chosen by clicking on it with any mouse button - including some other button while one is being held down.

Choosing can be aborted either by pressing the Escape key or by releasing any mouse button while the mouse is off the menu - including some other button while one is being held down.

Position

As far as allowed by the position of the widget on the screen, the left edge of the menu is aligned with the left edge of the value area and the top edge of the initially raised area (containing the currently chosen item) is aligned with the top edge of the value area.

Size

The menu is sized to contain the labels in their specified font (subject, of course, to the limitation of screen size).

Color

The color is determined by the `bg attribute.  It is grey by default (more precisely, the value of s.GREY).


doc@aplusdev.org© Copyright 1995–2008 Morgan Stanley Dean Witter & Co. All rights reserved.