[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ColorBox' (#lcl)

TCustomColorBox.CloseUp

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

Declaration

Source position: colorbox.pas line 77

protected procedure TCustomColorBox.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

TCustomColorBox.PickCustomColor

  

Selects a custom color using a color dialog.

TCustomColorBox.Selected

  

The TColor value for the selected item in the combo-box control.

TCustomColorBox.Colors

  

Provides indexed access to the TColor value for items in the control.

TColorDialog

  

Implements a dialog used to select a TColor value.

TCustomComboBox.CloseUp

  

Called when the drop-down list is closed.

TCustomComboBox.OnCloseUp

  

Handler invoked when the drop-down list closes.

TCustomComboBox.DroppedDown

  

Indicates whether the drop-down list has been displayed.

TComboBox.OnEditingDone

  

Event handler signalled when editing is completed for the control.


Version 4.0 Generated 2025-05-03 Home