Show: Delphi C++
Display Preferences

DesignEditors.TPropertyEditor.GetValues

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure GetValues(Proc: TGetStrProc); virtual;

Properties

Type Visibility Source Unit Parent
procedure public DesignEditors.pas DesignEditors TPropertyEditor

Description

Provides the enumerated values of the property to a callback procedure.

The Object Inspector calls GetValues when the drop-down button is clicked to show enumerated values. The GetValues method of TPropertyEditor does nothing. Property editors that return paValueList from the GetAttributes method should override GetValues to call the Proc parameter for every string that can represent a valid enumerated value. Even if the GetAttributes method does not return paValueList, property editors for enumerated types should still override GetValues to enumerate all possible values.

See Also

Personal tools
Previous Versions
Translations