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

TCommonDialogAction

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Dialog action used to create, configure, and display a dialog.

Declaration

Source position: stdactns.pas line 124

type TCommonDialogAction = class(TCustomAction)

protected

  FDialog: TCommonDialog;

  

FDialog - local variable holding the Dialog associated with this action.

  procedure DoAccept;

  

DoAccept - perform the code for the OnAccept event.

  procedure DoBeforeExecute;

  

Performs the BeforeExecute notification when assigned.

  procedure DoCancel;

  

DoCancel - perform the code for the OnCancel event.

  function GetDialogClass; virtual;

  

GetDialogClass - returns the class type for the dialog associated with this action.

  procedure CreateDialog; virtual;

  

Create a new instance of the class type used in the Dialog property.

public

  constructor Create(); override;

  

Constructor for the class instance.

  function Handlestarget(); override;

  

  procedure ExecuteTarget(); override;

  

  property ExecuteResult: Boolean; [r]

  

ExecuteResult - the result of the execution: True if successful.

  property BeforeExecute: TNotifyEvent; [rw]

  

BeforeExecute - event handler for performance before execution of the action.

  property OnAccept: TNotifyEvent; [rw]

  

OnAccept - event handler for a press of the Accept button.

  property OnCancel: TNotifyEvent; [rw]

  

OnCancel - event handler for a press of the Cancel button.

published

  property OnUpdate;

  

end;

Inheritance

TCommonDialogAction

  

Dialog action used to create, configure, and display a dialog.

|

TCustomAction

  

TCustomAction is the ancestor class for TAction.

|

TContainedAction

  

Implements an Action class which has a category and parent action list.

|

TBasicAction

?

TObject

See also

TCustomAction

  

TCustomAction is the ancestor class for TAction.