[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Performs actions needed when the selection in the control is changed.
Source position: colorbox.pas line 202
protected procedure TCustomColorListBox.DoSelectionChange( |
User: Boolean |
); override; |
DoSelectionChange is an overridden method used to perform actions needed when the value in the ItemIndex property is changed.
The User parameter indicates the origin of the change. When User is True, the change occurred due to user interaction with the control. When User is False, the change occurred when the ItemIndex property was updated by another method in the control.
When User is True, the Style property is examined to see if a custom color can be used in the Colors for the control. When Style includes the value cbCustomColor, and ItemIndex is set to 0, the PickCustomColor method is called to select a custom color using a color dialog. If a custom color was successfully selected, the TColor value in Colors for the ItemIndex is stored in the Selected property.
The color dialog is not displayed, and Selected is not updated when User is set to False.
DoSelectionChange calls the inherited method prior to exit.
|
Signals the OnSelectionChange handler. |
Version 4.0 | Generated 2025-05-03 | Home |