JVCL Help:TJvColorComboBox.OnGetDisplayName
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvColorComboBox.OnGetDisplayName Event
[+] TJvColorComboBox Events
[+] TJvColorComboBox Methods
[+] TJvColorComboBox Properties
Search in JVCL Help
Search in all projectsSummary
Occurs immediately before an item is displayed in the color combo box.
Pascal
TJvGetColorNameEvent = procedure (Sender: TObject; Index: Integer; Color: TColor; var DisplayName: string) ofobject;
propertyOnGetDisplayName: TJvGetColorNameEvent;
Parameters
Parameters | Description |
Color | Set Color to specify a new color for the to be displayed item. Leave Color unchanged to display the color as specified in the combo box list. |
DisplayName | Set DisplayName to specify a new display name for the to be displayed item. Leave DisplayName unchanged to display the name as specified in the combo box list. |
Sender | The TJvColorComboBox component that has sent this event. |
Index | Specifies the zero-based position of the color item in the combo box list. |
Description
Use OnGetDisplayName to customize an item before it is displayed in the color combo box. Set the values of the parameters in the event handler so that the item appears correctly when it is displayed.
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