2

In my app I have a design time registered TStyleBook mostly with custom styles for panels (different colors). In this TStyleBook, at design time, I've added an item, assigning the fill color, for several platforms, naming it 'panel_with_custom_color'.

My question is how can I change the fill color for the 'panel_with_custom_color' and with that changing the colors of all the TPanel objects that have the property

StyleLookup: panel_with_custom_color
Miguel E
  • 1,316
  • 2
  • 17
  • 39
  • This is not very clear. Double click on the StyleBook and the Style Editor opens up and from there you can change the Fill.Color. But I suspect you already did this... what is not working exactly? – Frazz Mar 22 '17 at 16:15
  • Is there a way to change the existing Fill.Color programmatically? – Miguel E Mar 22 '17 at 17:09
  • This is still very ambiguous. Could you please show us (not in the comments, but in the question) what you are trying to do and achieve? You want to change the style at runtime? Are you using styles just to change background colors of panels? – Frazz Mar 23 '17 at 13:48
  • guess this is old question, but could probably use FindStyleResource – George Birbilis Apr 12 '22 at 01:01

0 Answers0