Skip to main content
Table of Contents

TTMSFNCBitmapPicker.Items Property

Gets or sets the bitmap items displayed in the drop-down selector.

API unit family: TMSFNCBitmapPicker Declaring type: TTMSFNCBitmapPicker Inherited from: TTMSFNCCustomBitmapPicker Type: TTMSFNCBitmapSelectorItems

Syntax

FMX.TMSFNCBitmapPicker.hppPascalC++
property Items: TTMSFNCBitmapSelectorItems;
__property TTMSFNCBitmapSelectorItems* Items = {read=GetItems, write=SetItems};

Usage examples

Populate a bitmap picker

Adds bitmap choices by name from a shared bitmap container.

Populate a bitmap pickerPascalC++
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;

void __fastcall TForm1::ConfigureBitmapPicker()
{
  TTMSFNCBitmapSelectorItem *Item;

  TMSFNCBitmapPicker1->BitmapContainer = TMSFNCBitmapContainer1;

  Item = TMSFNCBitmapPicker1->Items->Add();
  Item->BitmapName = "status-ok";

  Item = TMSFNCBitmapPicker1->Items->Add();
  Item->BitmapName = "status-warning";

  TMSFNCBitmapPicker1->SelectedItemIndex = 0;
}

Read the related guide