DesignEditors.TSetElementProperty.GetValues

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
DesignEditors.pas
DesignEditors.hpp
Unit: DesignEditors
Parent: TSetElementProperty

Delphi

procedure GetValues(Proc: TGetStrProc); override;

C++

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

Description

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

DesignEditors.TSetElementProperty.GetValues inherits from DesignEditors.TPropertyEditor.GetValues. All content below this line refers to DesignEditors.TPropertyEditor.GetValues.

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