[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Handles AutoComplete and AutoSelect for the control.
Source position: stdctrls.pp line 388
protected procedure TCustomComboBox.KeyUp( |
var Key: Word; |
Shift: TShiftState |
); override; |
Key |
|
Virtual key code examined in the method. |
Shift |
|
Shift, Alt, or Ctrl modifier for the key code. |
KeyUp is an overridden method in TCustomComboBox, and calls the inherited method on entry.
KeyUp ensures that the VK_RETURN key code causes SelectAll to be called when AutoCompletion or AutoSelect is enabled for the control. AutoSelected is set to True when the values in SelText and Text are the same.
In addition, alphanumeric key codes are used to perform AutoComplete text location using the options enabled in the AutoCompleteText property. The values in Text, SelStart, and SelLength are updated (when needed) and the Select method is called to reflect the operation. If the key causes the auto-completed text to differ from the value in Text, ItemIndex is updated to reflect the auto-completed text value.
KeyUp is called when TLMKeyUp control messages are processed in the handlers for the control.
|
Selects the entire content of the edit box when the control receives the focus. |
|
|
True indicates that the selection was marked automatically by the control. |
|
|
Positions the list box using partial text matching. |
|
|
Options for the behavior of the Auto-Complete feature. |
|
|
The value in the edit box for the control. |
|
|
The selected text in the edit box for the control. |
|
|
zero-based index to the UTF-8 character at the beginning of the selected text in the edit box. |
|
|
The number of selected UTF-8 characters in the edit box. |
|
|
Signals the OnSelect event handler when ItemIndex is changed. |
|
|
The index of the currently selected item, or -1 if no item is selected. |
|
|
Signals the OnKeyUp event handler (when assigned). |
Version 4.0 | Generated 2025-05-03 | Home |