Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-12

Custom panel - issue with parent color in childs

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krzysztof

Hi,

I have own custom panel which inherit from TCustomControl instead of TCustomPanel (which inherit from TCustomControl also). Problem is that controls placed on my panel don't refresh parent color. See screen ( http://i45.tinypic.com/16ld1fr.png ), top panel is my, bottom is standard TPanel. Both have color set to clBlack, but TEdit placed on my panel has gray background instead of black. I'm analyzing source of TCustomPanel and I'm stuck. I have the same flags etc. Have widgets hard coded check that parent for background color must inherit from TCustomPanel/TCustomForm?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121205/da52a374/attachment.html>

Reply by email