
(*
 Delphi Object and Component Reference
#{bmc bm10.BMP} OnExecute example
When a client component or control is clicked, the OnExecute event occurs for it’s associated action. For example, the following code illustrates the OnExecute event handler for an action that toggles the visibility of a toolbar when the action is executed. This example requires a TActionList (with one TAction) and a TToolBar on a form.
*) 
procedure TForm1.Action1Execute(Sender: TObject);
begin
	{ Toggle Toolbar1’s visibility }
	ToolBar1.Visible := not ToolBar1.Visible;
end; 
