class MASKING_DLL_DECLSPEC Shortcut

The shortcut widget.

Inheritance:

Shortcut - Widget - Rect


Public Methods

[more]void Setup(int key, int shifts = 0)
Sets the combination of keys the widget should respond to.

Protected Fields

[more]int key
The key the widget is supposed to respond to
[more]int shifts
The combination of key shifts the widget is supposed to respond to

Protected Methods

[more]bool MsgXChar(int xchar)
Handles keypresses.


Documentation

The shortcut widget. This is an invisible widget that helps implement keyboard shortcuts. It supports more or less all keys and combinations of Ctrl, Shift and Alt keys.

Note: Shortcut is deprecated. Use the Accelerator class instead.

oint key
The key the widget is supposed to respond to

oint shifts
The combination of key shifts the widget is supposed to respond to

obool MsgXChar(int xchar)
Handles keypresses. If it detects a combination of keys defined with the Setup() function was pressed it sends MSG_ACTIVATE to the parent dialog.

ovoid Setup(int key, int shifts = 0)
Sets the combination of keys the widget should respond to. Key is an Allegro KEY_* constant and shifts is a combination of key shifts flags such as KB_CTRL_FLAG, KB_ALT_FLAG, KB_SHIFT_FLAG, etc. Whenever the widget detects its combination of keys was pressed it send a MSG_ACTIVATE message to the parent dialog.


This class has no child classes.
See Also:
Accelerator

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++