Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WinConrtol, GraphicControl and Transparent

0 views
Skip to first unread message

Alexander J. Fanti

unread,
Apr 23, 1999, 3:00:00 AM4/23/99
to
Hi all,

I want to make some Transparent components... but they need to be
windowed (as in get input focus). Now I know I should derive these from
TCustomControl or TWinControl, but then they are filled with the window
color...

If derived from TGraphicControl they are left transparent...

So my question is... where in the VCL are the TWinControl and
TCustomControl being filled in, and how can I get rid of this behavior.

To me, it appears to happen in TWinControl, but I'm not sure where...
Any help would be greatly appreciated.

Thanks,

Alex Fanti

Eddie Shipman

unread,
Apr 23, 1999, 3:00:00 AM4/23/99
to
Try:
Filename tr101sou.zip found at Torry's, I think.

Transparent Controls
Version 1.01
------------------------------------------
Package of four REALLY transparent controls:

TTrRadioButton, TTrGroupBox, TTrCheckBox, TTrRadioGroup

The background color is replaced with a brush copy of
whatever is beneath the component
------------------------------------------
Contact: Sergey Kurinny kur...@gu.kiev.ua

If you can't find it, let me know and I'll send it to you.

Damon Chandler

unread,
Apr 24, 1999, 3:00:00 AM4/24/99
to
Alexander,
You might try trapping the WM_ERASEBKGND Windows message.

{Damon}

0 new messages