Keyboard shortcuts Keyboard shortcuts structure
Programming guideline of WinDom

Keyboard shortcuts and WinDom

Keyboard shortcuts are handled directly by EvntWindom(). The developper does nothing except to declare the shortcuts. The declaration of these shortcuts are performed in the ressource. When a keyboard event occurs, EvntWindom() evaluates it and searchs among the formulars, toolbar and menus. When the shortcut is found, the search stops and a message is sent. The shortcut is successively search in:

  1. the desktop menu (if found, a MN_SELECTED message is sent),

  2. active window menu (if found, a ,WM_MNSELECTED message is sent),

  3. the active window toolbar (if found, a WM_TOOLBAR message is sent),

  4. the active window formular (if found, a WM_FORM message is sent).

The active window may be the top window or the window pointed by the mouse (see the windom.evnt variable).