RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMethodProperty.GetValues Method

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

Pascal
procedure GetValues(Proc: TGetStrProc); override;
C++
virtual __fastcall GetValues(TGetStrProc Proc);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!