JVCL Help:TJvNewColorEvent
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvNewColorEvent type
[+] JvColorCombo.pas Types
Search in JVCL Help
Search in all projectsSummary
Type for event handlers that let an application respond before a color is added to a color combo box.
Pascal
run\JvColorCombo.pas
TJvNewColorEvent = procedure (Sender: TObject; Color: TColor; var DisplayName: string; var AllowAdd: Boolean) ofobject;
Parameters
Parameters | Description |
Sender | The TJvColorComboBox component that has sent this event. |
Color | The new color added by the user. |
DisplayName | 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. |
AllowAdd | Specifies whether the add should be permitted. |
Description
Use TJvNewColorEvent to conditionally prevent colors to be added to the color combo box, or to alter the DisplayName of a new color.
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