JVCL Help:TJvColorComboBox.OnNewColor
JVCL Help: TJvColorComboBox.OnNewColor Event
Search in JVCL Help
Search in all projectsSummary
Occurs when the user tries to add a new color to the combo box.
Pascal
propertyOnNewColor: TJvNewColorEvent;
Description
Write an OnNewColor event handler to conditionally prevent the user from adding colors to the color combo box, or to alter the DisplayName of a new color if the user adds it to the combo box.
Color indicates the new color the user wants to add.
Parameter DisplayName specifies the display text for the new color. It consists of the NewColorText and a number indicating the number of custom colors added by the user, so far. Alter DisplayName to change the display text for the new color.
Set AllowAdd to False to disallow the user to add the color. Note coCustomColors must be included in Options, otherwise the combo box doesn't allow colors to be added by the user.
See Also
TJvColorComboBox.ColorDialogText, TJvColorComboBox.CustomColorCount, TJvColorComboBox.NewColorText, TJvColorComboBox.OnBeforeCustom, TJvColorComboBox.Options
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page