Sign in Join
FPDoc Onlineexperiment

TCustomColorBox.CloseUp procedure

Member of TCustomColorBoxprotectedIn unit ColorBox

Performs actions needed when the drop-down list for the control is closed.

Declaration

pascal
procedure CloseUp; override

Description

CloseUp is an overridden method in TCustomColorBox. It extends the inherited method to select a custom color using TColorDialog when enabled in the Style for the control and selected in the drop-down list.

PickCustomColor is called to select the custom color, or cancel the operation. The TColor value selected in PickCustomColor is assigned to both Colors and the Selected property if the dialog was not cancelled.

CloseUp calls the inherited method prior to exit to signal the OnEditingDone and OnCloseUp event handlers.

CloseUp is called when a CN_Command message with a CBN_CLOSEUP notification code is handed for the control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.