Rule-based property management

Looking at the hierarchical structure of html and dfm, it can find similarities (nested structure, properties (attributes), etc.). The next step is to ask if there is something like css (Cascade style sheets) in the Delphi world. So, for example, a rule like this

TPanel TPanel BorderWidth=2

      

can specify that for any TPanel placed in another panel, the BorderWidth property should always be 2.

or

TPanel.MyPanel TLabel Font.Style=[fsBold] 

      

for TPanel named MyPanel, any label inside must be bold (similar to css. The specific name (MyPanel) can be equivalent to the id html attribute)

So, is there a library / unit that was designed for something like this?

I suppose there must be some problems

  • implementing this at design time may present compatibility issues with Delphi's internal form builder (perhaps this library could be more time oriented)

  • In the html world, this is mainly related to the visual, so the error can only lead to visual peculiarities, but in the properties of Delphi, which sometimes must be set explicitly by the programmer's team and make it an object of mass control, can present security and stability threats.

However, I thought we were too tied to property changes. Even if it is copy-paste, the root of any property change is the highlighted click.

+3
properties delphi


source to share


No one has answered this question yet

See similar questions:

sixteen
Is there a Delphi XE2 style gallery?
6
Recycling only one VCL component in Delphi

or similar:

1435
How to efficiently count the number of keys / properties of an object in JavaScript?
975
What is the difference between a field and a property?
866
How does the @property decorator work?
644
Using @property versus getters and setters
638
Dynamically access an object using a variable
638
Does C # have extension properties?
611
Sorting JavaScript object by property value
578
How do I list properties of a JavaScript object?
434
How do I get a list of the properties of a class?
0
C ++ Builder XE - How to Implement TFont Property



All Articles
Loading...
X
Show
Funny
Dev
Pics