SLIDER widgets are commonly used for modifying values through the use of a slider bar. The widget consists of a slider bar and tick marks beside the bar. These tick marks can be used to snap the slider bar while dragging it.
SLIDER
|
SLIDER with new skin.
|
Receives focus
|
Yes
|
Skinnable
|
Yes
|
OwnerDraw
|
No
|
Uses Memory Devices
|
No
|
Attached widgets
|
None
|
Notification codes
The following events are sent from a SLIDER widget to its parent window as part of a WM_NOTIFY_PARENT message:
Message |
Description
|
WM_NOTIFICATION_CLICKED
|
SLIDER has been clicked.
|
WM_NOTIFICATION_RELEASED
|
SLIDER has been released.
|
WM_NOTIFICATION_MOVED_OUT
|
SLIDER has been clicked and pointer has been moved out of the SLIDER widget without releasing.
|
Keyboard reaction
The SLIDER widget reacts to the following keys if it has the input focus:
Message |
Description
|
GUI_KEY_RIGHT
|
Increments the current value of the SLIDER widget by one item.
|
GUI_KEY_LEFT
|
Decrements the current value of the SLIDER widget by one item.
|
Samples
Below are links to samples that demonstrate how to use SLIDER widgets in emWin.