DesignEditors.TPropertyEditor.GetValues

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetValues(Proc: TGetStrProc); virtual;

C++

virtual void __fastcall GetValues(System::Classes::TGetStrProc Proc);

Properties

Type Visibility Source Unit Parent
procedure
function
public
DesignEditors.pas
DesignEditors.hpp
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