wuwuxin 28 Posted April 26, 2021 Is there any existing library or framework that can automatically (dynamically) generate an editor user interface for a user defined class? For example, TSex = (Male, Female); TMyFunkyDataType = class Name: String; // --- this will generate a text editor Sex: TSex; // --- this will generate a drop down box end; Share this post Link to post
Remy Lebeau 1436 Posted April 26, 2021 (edited) 3 hours ago, wuwuxin said: Is there any existing library or framework that can automatically (dynamically) generate an editor user interface for a user defined class? There are 3rd party Object Inspectors available, if you search around. Or, you could write your own editor using the VCL's TValueListEditor component and some manual RTTI logic. Edited April 27, 2021 by Remy Lebeau 1 Share this post Link to post
pyscripter 694 Posted April 27, 2021 3 hours ago, Remy Lebeau said: There are 3rd party Object Inspectors available, if you search around. MahdiSafsafi/zControls: zControls (github.com) 1 Share this post Link to post
aehimself 399 Posted April 27, 2021 14 hours ago, wuwuxin said: TSex = (Male, Female); Joke: In today's world you are better suited with a string type. 2 Share this post Link to post
Rollo62 539 Posted April 27, 2021 2 hours ago, aehimself said: Joke: In today's world you are better suited with a string type. You think 26 Characters are enough ? 🤔 1 Share this post Link to post
Guest Posted April 27, 2021 (edited) [TL;DR] Edited April 27, 2021 by Guest tl;dr..rr Share this post Link to post
Fr0sT.Brutal 900 Posted April 28, 2021 20 hours ago, aehimself said: Joke: In today's world you are better suited with a string type. Just add "Other", profit 🙂 Share this post Link to post