JVCL Help:TJvNewColorEvent

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Type for event handlers that let an application respond before a color is added to a color combo box.

run\JvColorCombo.pas


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.

run\JvColorCombo.pas


Description

Use TJvNewColorEvent to conditionally prevent colors to be added to the color combo box, or to alter the DisplayName of a new color.

run\JvColorCombo.pas


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