Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning custom property value editors #8

Open
beNative opened this issue Dec 17, 2016 · 2 comments
Open

Assigning custom property value editors #8

beNative opened this issue Dec 17, 2016 · 2 comments

Comments

@beNative
Copy link
Contributor

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
);
@MahdiSafsafi
Copy link
Owner

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.

@beNative
Copy link
Contributor Author

I will look into it and will provide a pull request.

Regards,
Tim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants