EDIT widgets are commonly used as the primary user interface for text input. EDIT widgets can also be used for entering values in binary, decimal, or hexadecimal modes.
EDIT
|
EDIT widget with user input.
|
Receives focus
|
Yes
|
Skinnable
|
No
|
OwnerDraw
|
No
|
Uses Memory Devices
|
No
|
Attached widgets
|
None
|
Notification codes
The following events are sent from an EDIT widget to its parent window as part of a WM_NOTIFY_PARENT message:
Message |
Description
|
WM_NOTIFICATION_CLICKED
|
EDIT has been clicked.
|
WM_NOTIFICATION_RELEASED
|
EDIT has been released.
|
WM_NOTIFICATION_MOVED_OUT
|
EDIT has been clicked and pointer has been moved out of the EDIT widget without releasing.
|
WM_NOTIFICATION_VALUE_CHANGED
|
Value (content) of the EDIT widget has changed.
|
Keyboard reaction
The EDIT widget reacts to the following keys if it has the input focus:
Message |
Description
|
GUI_KEY_UP
|
Increases the current character. If for example the current character (the character below the cursor) is a 'A' it changes to 'B'.
|
GUI_KEY_DOWN
|
Decreases the current character. If for example the current character is a 'B' it changes to 'A'.
|
GUI_KEY_RIGHT
|
Moves the cursor one character to the right.
|
GUI_KEY_LEFT
|
Moves the cursor one character to the left.
|
GUI_KEY_BACKSPACE
|
If the widget works in text mode, the character before the cursor is deleted.
|
GUI_KEY_DELETE
|
If the widget works in text mode, the current is deleted.
|
GUI_KEY_INSERT
|
If the widget works in text mode, this key toggles the edit mode between GUI_EDIT_MODE_OVERWRITE and GUI_EDIT_MODE_INSERT.
|
GUI_KEY_HOME
|
Moves the cursor to the first position.
|
GUI_KEY_END
|
Moves the cursor to the last position.
|