SPINBOX
SPINBOX widgets are used to manage values which need to be adjustable in a fast but still precise manner. A SPINBOX consists of 2 buttons and an embedded EDIT widget.
SPINBOX | |
---|---|
Receives focus | Yes |
Skinnable | Yes |
OwnerDraw | No |
Uses Memory Devices | No |
Attached widgets |
Notification codes
The following events are sent from a SPINBOX widget to its parent window as part of a WM_NOTIFY_PARENT message:
Message | Description |
---|---|
WM_NOTIFICATION_CLICKED | Button has been clicked. |
WM_NOTIFICATION_RELEASED | Button has been released. |
WM_NOTIFICATION_MOVED_OUT | Pointer has been moved out of the widget area. |
WM_NOTIFICATION_VALUE_CHANGED | The value of the SPINBOX widget has changed. |
Keyboard reaction
The widget is able to receive the input focus. All key events are forwarded to the embedded EDIT widget. Detailed information can be taken from the EDIT widget section.
Samples
Below are links to samples that demonstrate how to use SPINBOX widgets in emWin.