[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Add an item as the first entry in History List.
Source position: stdctrls.pp line 375
public procedure TCustomComboBox.AddHistoryItem( |
const Item: string; |
MaxHistoryCount: Integer; |
SetAsText: Boolean; |
CaseSensitive: Boolean |
); |
const Item: string; |
AnObject: TObject; |
MaxHistoryCount: Integer; |
SetAsText: Boolean; |
CaseSensitive: Boolean |
); |
Item |
|
The string to be added to the list. |
MaxHistoryCount |
|
The maximum number of items that can be added to the history. |
SetAsText |
|
When True the string also is copied into the edit box. |
CaseSensitive |
|
True means that the list can contain multiple items with the same text, differing in case. |
Item |
|
The string to be added to the list. |
AnObject |
|
The object associated with the item; can be Nil. |
MaxHistoryCount |
|
The maximum number of items that can be added to the history. |
SetAsText |
|
When True the string also is copied into the edit box. |
CaseSensitive |
|
True means that the list can contain multiple items with the same text, differing in case. |
When the item is already in the history list, it is moved to the begin of the list.
Otherwise the item is added as the first entry; when the list is full, the last item is removed.
|
Allows to select items from partial input, of the begin of the item text. |
lazarus-ccr.sourceforge.net |