Custom color backgroung in Delphi with runtime themes included

I create a bunch of panels at runtime and I want to change their color. The color property does not work, and I do not want to change the runtime themes ...

Any ideas?

I am using Delphi XE3.

Thanks for any help!

+4
source share
1 answer

Remove seClient from StyleElements and set ParentBackground to false.

aPanel.StyleElements := Panel1.StyleElements - [seClient]; aPanel.ParentBackground := False; aPanel.Color := clLime; 
+6
source

Source: https://habr.com/ru/post/1484843/


All Articles