Re: Enum order in component view
- From: "Sonnich" <sonnich.jensen@xxxxxxxxxxxxxx>
- Date: 25 Oct 2005 05:23:51 -0700
Thanks, found the solution. Thanks for the idea.
Quite simple actually:
.....
TTimeScaleProperty = class(TEnumProperty)
public
function GetAttributes: TPropertyAttributes; override;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('somewhere', [Tmycomp]);
RegisterPropertyEditor(TypeInfo(TTimeScale), Tmycomp, 'TimeScale',
TTimeScaleProperty);
end;
function TTimeScaleProperty.GetAttributes: TPropertyAttributes;
begin
Result := [paValueList, paMultiSelect]; // remove sort here
end;
.
- Follow-Ups:
- Re: Enum order in component view
- From: Maarten Wiltink
- Re: Enum order in component view
- References:
- Enum order in component view
- From: Sonnich
- Re: Enum order in component view
- From: Maarten Wiltink
- Enum order in component view
- Prev by Date: Re: @ operator ? Or maybe not
- Next by Date: Re: @ operator ? Or maybe not
- Previous by thread: Re: Enum order in component view
- Next by thread: Re: Enum order in component view
- Index(es):