Vcl.ExtCtrls.TCustomColorBox.PickCustomColor
Delphi
function PickCustomColor: Boolean; virtual;
C++
virtual bool __fastcall PickCustomColor();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TCustomColorBox |
Description
Displays the color selection dialog so that the user can select a custom color.
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.