Delphi 10.4 - How to modify the parameters of an element of a StyleBook at runtime?

Viewed 287

In Delphi 10.4, I would like to modify the color of one element (backgroundstyle) in a StyleBook at run time I tried

StyleBook1.Styles.StyleData['backgroundstyle.Fill.Color'] := TalphaColors.Blue;

and/or

StyleBook1.StyleContainer['backgroundstyle.Fill.Color'] := TalphaColors.Blue;

but I have the following error messages 'undclared identifier'...

Does someone have an idea ? Thank's a lot enter image description here

1 Answers

It looks like you're missing an s in StyleBook1.Styles.StylesData

Related