TTMSFNCBitmapPicker.SelectedBitmap Property
Returns the bitmap associated with the current selection.
API unit family: TMSFNCBitmapPicker
Declaring type: TTMSFNCBitmapPicker
Inherited from: TTMSFNCCustomBitmapPicker
Type: TTMSFNCBitmap
Syntax
property SelectedBitmap: TTMSFNCBitmap;
__property TTMSFNCBitmap* SelectedBitmap = {read=GetSelectedBitmap};
Usage examples
Use the selected bitmap
Reads the selected bitmap and selected item index.
procedure TForm1.ApplySelectedBitmap;
begin
TMSFNCImage1.Bitmap.Assign(TMSFNCBitmapPicker1.SelectedBitmap);
Caption := 'Selected item: ' + TMSFNCBitmapPicker1.SelectedItemIndex.ToString;
end;
void __fastcall TForm1::ApplySelectedBitmap()
{
TMSFNCImage1->Bitmap->Assign(TMSFNCBitmapPicker1->SelectedBitmap);
Caption = "Selected item: " + IntToStr(TMSFNCBitmapPicker1->SelectedItemIndex);
}