TTMSFNCButton.BitmapName Property
Names the bitmap to load from the assigned bitmap container.
API unit family: TMSFNCButton
Declaring type: TTMSFNCButton
Type: String
Syntax
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.
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>";
}