Assigning custom property value editors
I know it is now possible by assigning the global DefaultValueManager variable to your own overridden class of TzCustomValueManager.
It would be cleaner to add a public TzCustomValueManagerClass property to TzObjInspectorBase (or even better: an interface type that is implemented by TzCustomValueManager).
Another way to provide your own property value editors could be through an extra event property in which you can provide your own class or instance of the value editor:
OnGetEditorClass(
Sender : TObject;
AInstance : TObject;
APropInfo : PPropInfo;
var AEditorClass : TzPropertyEditorClass
);
Hi, Thank you for your suggestion ! For the moment I don't have a Delphi version installed on my machine. Please feel free to submit a pull request if you made a change, and I will review the change and merge it.
Mahdi.
I will look into it and will provide a pull request.
Regards, Tim