Getting Started with TMS FNC Combo Box
Use TTMSFNCComboBox when users need to choose from a list, optionally type a value, or use HTML-capable item text.
Create a Combo Box
- Drop
TTMSFNCComboBoxon the form. - Add entries to
Itemsor callAddItem. - Set
ItemIndexorTextfor the initial value. - Handle
OnItemSelectedwhen the form should react to selection.
var
I: Integer;
begin
TMSFNCComboBox1.Items.Clear;
for I := 1 to 10 do
TMSFNCComboBox1.AddItem('Item ' + I.ToString);
TMSFNCComboBox1.ItemIndex := 0;
TMSFNCComboBox1.OnItemSelected := TMSFNCComboBox1ItemSelected;
end;
Next Steps
| Task | Guide |
|---|---|
| Add items and handle selection | Items and autocomplete |
| Enable editable text and autocomplete | Items and autocomplete |