Property editors
Property editors are custom dialogs for editing special properties of a component. The standard property types, such as strings, images, or enumerated types, have default property editors, but special property types may require you to write custom property editors.
Custom property editors must extend from the class TPropertyEditor
or one of its descendant classes. Property editors must be registered in the Register
procedure using the function RegisterPropertyEditor
from the unit PropEdits
. An example of property editor class declaration is given as follows:
TPropertyEditor = class public function AutoFill: Boolean; Virtual; procedure Edit; Virtual; // double-clicking the property value to activate procedure ShowValue; Virtual; //control-clicking the property value to activate function GetAttributes: TPropertyAttributes; Virtual; function GetEditLimit: Integer; Virtual; function GetName: ShortString; Virtual; function GetHint(HintType...