Difference between revisions of "CHECKBOX"
Line 57: | Line 57: | ||
== Samples == |
== Samples == |
||
− | Below are links to samples that demonstrate |
+ | Below are links to samples that demonstrate how to use CHECKBOX widgets in emWin. |
* [[CHECKBOX - Custom (Sample)|CHECKBOX_Custom.c]] |
* [[CHECKBOX - Custom (Sample)|CHECKBOX_Custom.c]] |
Latest revision as of 14:25, 13 July 2020
A check box may be checked or unchecked by the user, and any number of boxes may be checked at one time.
CHECKBOX | |
---|---|
Receives focus | Yes |
Skinnable | Yes |
OwnerDraw | No |
Uses Memory Devices | No |
Attached widgets | None |
Notification codes
The following events are sent from a CHECKBOX widget to its parent window as part of a WM_NOTIFY_PARENT message:
Message | Description |
---|---|
WM_NOTIFICATION_CLICKED | CHECKBOX has been clicked. |
WM_NOTIFICATION_RELEASED | CHECKBOX has been released. |
WM_NOTIFICATION_MOVED_OUT | CHECKBOX has been clicked and pointer has been moved out of the box without releasing. |
WM_NOTIFICATION_VALUE_CHANGED | Status of CHECKBOX has been changed. |
Keyboard reaction
The CHECKBOX widget reacts to the following keys if it has the input focus:
Message | Description |
---|---|
GUI_KEY_SPACE | Toggles the checked state of the CHECKBOX widget. |
Samples
Below are links to samples that demonstrate how to use CHECKBOX widgets in emWin.