RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TColorSelect.Dialog Property

Provides access the color selection dialog that the action executes.

Pascal
property Dialog: TColorDialog;
C++
__property TColorDialog Dialog;

Use Dialog to configure the color selection dialog before the action fires or to read the selected color after the action executes the dialog. For example, you can set the initially selected color in the dialog at design time using the Object Inspector or read the dialog's Color property in an OnAccept event handler to make use of the selected color. 

When using a color select action, you do not place a TColorDialog component on the form or data module at design time. Instead, you add the TColorSelect to your action list and then use the Dialog property. The color selection dialog component is created by the TColorSelect constructor. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!