Recent

Author Topic: TCheckbox background  (Read 8292 times)

tk

  • Sr. Member
  • ****
  • Posts: 361
    • tkweb
TCheckbox background
« on: August 07, 2009, 11:38:15 am »
Hi, I'm placing a TCheckBox on a parent control. The control paints itself only with WM_PAINT. Would like to make the checkbox really transparent, i.e. to make checkbox's background the real parent's painting and not only parent's Color. In Delphi this can be done generally by utilizing CN_CTLCOLORSTATIC in checkbox's WndProc (no xp themes) or parent's WM_ERASEBKGND (xp themes - VCL calls DrawParentBackground). Is there a way in LCL? Thx
Lazarus 1.7 with FPC 3.1.1.

http://www.tkweb.eu/

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: TCheckbox background
« Reply #1 on: September 04, 2010, 02:39:49 am »
I would also be interested in an answer to this.

I would like to make the text background transparent, so the underlying color Shape.color would show through.  

The clNone "color" option is not transparent.

Any solution / thoughts?

Update: Interesting - clNone IS transparent for TLabel and TLabledEdit.  Time to submit a bug report, I think.
« Last Edit: September 04, 2010, 02:47:54 am by IPguy »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: TCheckbox background
« Reply #2 on: September 04, 2010, 03:16:15 am »
Quote
Time to submit a bug report, I think.

I think so.