RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomColorBox.PickCustomColor Method

Displays the color selection dialog so that the user can select a custom color.

Pascal
function PickCustomColor: Boolean; virtual;
C++
virtual __fastcall Boolean PickCustomColor();

Applications can't call this protected method. It is called automatically when the user selects the custom color item. PickCustomColor displays the color selection dialog, with the selected color initialized to the last-selected custom color. If the user selects a color in this dialog, PickCustomColor updates the image of the item to display the selected color and returns true. If the user cancels from the color selection dialog, PickCustomColor returns false. 

Override PickCustomColor to provide a different response when the user selects the custom color item. 

 

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