Skip to main content

TdxCustomColorDialog.Execute Method

Displays the Color Editor dialog.

Declaration

function Execute: Boolean; overload; virtual;

Returns

Type Description
Boolean

Indicates whether a user confirmed pending changes when the Color Editor dialog is closed:

True
The function returns this value if a user pressed Enter or clicked OK to close the dialog.
False
The function returns this value if a user pressed Esc or clicked Close or Cancel button to close the dialog.

Remarks

Call the Execute function to display the Color Editor form as a modal dialog for the main application form.

VCL Editors: A Color Editor Dialog Example

To execute custom code when the Color Editor dialog is displayed or closed, handle OnShow and OnClose events.

See Also