Getting Started with TMS FNC Bitmap Picker
Use TTMSFNCBitmapPicker to let users choose a bitmap from a drop-down selector.
Prerequisites
- Delphi with TMS FNC UI Pack installed.
- A new or existing VCL, FMX, or WEB application.
Configure the Picker
- Drop a
TTMSFNCBitmapPickeronto a form. - Assign a
TTMSFNCBitmapContainerwhen items should reference named shared images. - Add items to
Items. - Read
SelectedBitmaporSelectedItemIndexafter the user selects an item.
procedure TForm1.ConfigureBitmapPicker;
var
Item: TTMSFNCBitmapSelectorItem;
begin
TMSFNCBitmapPicker1.BitmapContainer := TMSFNCBitmapContainer1;
Item := TMSFNCBitmapPicker1.Items.Add;
Item.BitmapName := 'status-ok';
Item := TMSFNCBitmapPicker1.Items.Add;
Item.BitmapName := 'status-warning';
TMSFNCBitmapPicker1.SelectedItemIndex := 0;
end;