Zakaria 0 Posted 5 hours ago how add property tagString to all delphi Compememet Share this post Link to post
PeterBelow 235 Posted 4 hours ago 8 minutes ago, Zakaria said: how add property tagString to all delphi Compememet If you want to be able to edit this new property in the IDE Object Inspector I don't see a way to do this since it would require not only a change of the source code of the TComponent class but also a rebuild of all design and run-time packages that use TComponent, and you do not have the source code for all of them, as far as I know. If using this property in code would be enough there may be a way to fake it using a class helper for TComponent that uses the existing Tag property to store an index of the actual string held in some global container, like a TStringlist. Share this post Link to post
Uwe Raabe 2044 Posted 4 hours ago @PeterBelow It is even possible to inject new properties to the Object Inspector. In Cmon.DataSense.Design.pas I use this technique to add a DataSource and DataField property to supported controls. The additional data is stored in a special component (TDataSense) using a dictionary internally: 2 Share this post Link to post
eivindbakkestuen 47 Posted 3 hours ago 1 hour ago, Zakaria said: how add property tagString to all delphi Compememet What problem are you trying to solve? 1 Share this post Link to post
Brandon Staggs 246 Posted 1 hour ago 3 hours ago, Zakaria said: how add property tagString to all delphi Compememet The first step is to re-think whatever series of choices led to this abysmal state. 2 Share this post Link to post
Anders Melander 1759 Posted 1 hour ago 49 minutes ago, Brandon Staggs said: whatever series of choices led to this abysmal state. *zing* 🔥 Share this post Link to post