Skip to main content
Table of Contents

TTMSFNCBloxEditToolBar.OnSaveFile Event

Occurs when the save-file button is clicked.

API unit family: TMSFNCBloxToolBar Declaring type: TTMSFNCBloxEditToolBar Type: TNotifyEvent

Syntax

FMX.TMSFNCBloxToolBar.hppPascalC++
property OnSaveFile: TNotifyEvent;
__property System::Classes::TNotifyEvent OnSaveFile = {read=FOnSaveFile, write=FOnSaveFile};

Parameters

Name Description
Sender The toolbar that raised the event.

Usage examples

Handle the toolbar save command

Supplies an application-owned destination when the user clicks the save button.

Handle the toolbar save commandPascalC++
procedure TForm1.BloxEditToolBar1SaveFile(Sender: TObject);
begin
  BloxControl1.SaveToFile('diagram.blox');
  StatusLabel.Text := 'Diagram saved';
end;
void __fastcall TForm1::BloxEditToolBar1SaveFile(TObject *Sender)
{
  BloxControl1->SaveToFile("diagram.blox");
  StatusLabel->Text = "Diagram saved";
}

Read the related guide