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

Transparent form background

421 views
Skip to first unread message

Ercan Ardal

unread,
Jun 3, 2008, 2:26:07 AM6/3/08
to
I need a transparent form backgound for my new TOOLBAR form.
Unfortunately, if I set ALPHA BLEND and ALPHA BLEND VALUE
Delphi makes all controls in the form the same alpha value.

On the contrary, I need opaque controls on a transparent form. ???

Please let me know if this is possible.

Thanks for any help.

Remy Lebeau (TeamB)

unread,
Jun 3, 2008, 1:29:57 PM6/3/08
to

"Ercan Ardal" <er...@tekhnelogos.com> wrote in message
news:4844...@newsgroups.borland.com...

> I need a transparent form backgound for my new TOOLBAR
> form. Unfortunately, if I set ALPHA BLEND and ALPHA
> BLEND VALUE Delphi makes all controls in the form the
> same alpha value.

Have you tried the form's TransparentColor and TransparentColorValue
properties instead?


Gambit


Patrick Hughes

unread,
Jun 4, 2008, 11:28:39 AM6/4/08
to
Have a look here:

http://users.telenet.be/ws36637/articles.html


--
Patrick Hughes

"Ercan Ardal" <er...@tekhnelogos.com> wrote in message
news:4844...@newsgroups.borland.com...

Ercan Ardal

unread,
Jun 5, 2008, 9:01:40 AM6/5/08
to
Yes I did. But these attributes make the form totally tranaparent, I am
looking for a half transparent and a half opaque solution.

Er-Djan

"Remy Lebeau (TeamB)" <no....@no.spam.com>, iletisinde şunu yazdı,
news:4845...@newsgroups.borland.com...

Remy Lebeau (TeamB)

unread,
Jun 5, 2008, 3:04:46 PM6/5/08
to

"Ercan Ardal" <er...@tekhnelogos.com> wrote in message
news:4847...@newsgroups.borland.com...

> Yes I did. But these attributes make the form totally tranaparent,
> I am looking for a half transparent and a half opaque solution.

Then you are likely out of luck. Alpha blending applies to the entire
window, including its controls, as you have already noticed. You cannot put
opaque controls onto a semi-transparent background via native OS methods.
So you will likely have to manually draw the background yourself to get the
effect you want.


Gambit


Er Djan

unread,
Jun 12, 2008, 2:41:36 AM6/12/08
to
Thanks for the suggestions. But I need a bit more details on;

How to "manually draw the background"?
Can you be a bit more specific about manual background drawing?
Should I draw to the TCanvas of the window by canvas methods or something
else?

Aer-Djan


"Remy Lebeau (TeamB)" <no....@no.spam.com>, iletisinde şunu yazdı,

news:48483915$1...@newsgroups.borland.com...

Mohsen

unread,
Jun 13, 2008, 8:03:37 PM6/13/08
to

The best way is to use GDI+ features I think. GDI+ is a powerfull tool to
do such works. See www.progdigy.com for get the GDI+ headers for Delphi.
Also there is many articles about using GDI+ in delphi on the web.

Good Luck.
Mohsen Rokkaei.

--- posted by geoForum on http://delphi.newswhat.com

0 new messages