TTMSFNCBloxEditToolBar.OpenFileButton Method
Returns the open-file button so its appearance can be customized.
API unit family: TMSFNCBloxToolBar
Declaring type: TTMSFNCBloxEditToolBar
Syntax
function OpenFileButton: TTMSFNCToolBarButton;
TTMSFNCToolBarButton* __fastcall OpenFileButton();
Returns
The open-file button.
Usage examples
Customize focused toolbar controls
Uses the public button and picker accessors to tailor hints without replacing commands.
procedure TForm1.CustomizeToolBarControls;
begin
BloxEditToolBar1.OpenFileButton.Hint := 'Open a diagram';
BloxEditToolBar1.ZoomFitButton.Hint := 'Fit the diagram';
BloxFormatBlockToolBar1.FillColorPicker.Hint := 'Set the block fill';
BloxFormatBlockTextToolBar1.BoldButton.Hint := 'Toggle bold text';
BloxSelectToolBar1.OtherButton.Hint := 'Insert another registered element';
end;
void __fastcall TForm1::CustomizeToolBarControls()
{
BloxEditToolBar1->OpenFileButton()->Hint = "Open a diagram";
BloxEditToolBar1->ZoomFitButton()->Hint = "Fit the diagram";
BloxFormatBlockToolBar1->FillColorPicker()->Hint = "Set the block fill";
BloxFormatBlockTextToolBar1->BoldButton()->Hint = "Toggle bold text";
BloxSelectToolBar1->OtherButton()->Hint = "Insert another registered element";
}