[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LCLTaskDialog' (#lcl)

TEmulatedTaskDialog.HandleEmulatedButtonClicked

Calls the OnButtonClicked event handler for the task dialog which owns the emulated dialog form.

Declaration

Source position: lcltaskdialog.pas line 203

protected procedure TEmulatedTaskDialog.HandleEmulatedButtonClicked(

  Sender: TObject

);

Arguments

Sender

  

Object instance (TButton) for the click event processed in the method.

Description

HandleEmulatedButtonClicked is a method used to signal an assigned OnButtonClicked event handler on the task dialog which owns the emulated dialog form. No actions are performed in the method if Owner (the TTaskDialog passed in the constructor) or its OnButtonClicked event handler have not been assigned.

HandleEmulatedButtonClicked signals the OnButtonClicked event in the Owner using the modal result value in Sender as an argument. If the event handler indicates that the dialog cannot be closed, the ModalResult property in the form is set to mrNone. Other modal result values are handled by the TaskDialog.Execute method.


Version 4.0 Generated 2025-05-03 Home