Skip to main content
Table of Contents

TTMSFNCButton.BitmapName Property

Names the bitmap to load from the assigned bitmap container.

API unit family: TMSFNCButton Declaring type: TTMSFNCButton Type: String

Syntax

FMX.TMSFNCButton.hppPascalC++
property BitmapName: String;
__property System::UnicodeString BitmapName = {read=FBitmapName, write=SetBitmapName};

Usage examples

Add an image to a button

Uses a bitmap container and bitmap name for reusable button artwork.

Add an image to a buttonPascalC++
procedure TForm1.ConfigureImageButton;
begin
  TMSFNCButton1.BitmapContainer := TMSFNCBitmapContainer1;
  TMSFNCButton1.BitmapName := 'refresh';
  TMSFNCButton1.ShowImage := True;
  TMSFNCButton1.BitmapSize := 20;
  TMSFNCButton1.Text := '<b>Refresh</b>';
end;

void __fastcall TForm1::ConfigureImageButton()
{
  TMSFNCButton1->BitmapContainer = TMSFNCBitmapContainer1;
  TMSFNCButton1->BitmapName = "refresh";
  TMSFNCButton1->ShowImage = true;
  TMSFNCButton1->BitmapSize = 20;
  TMSFNCButton1->Text = "<b>Refresh</b>";
}

Read the related guide