Re: Enum order in component view



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;

.