On the contrary, I need opaque controls on a transparent form. ???
Please let me know if this is possible.
Thanks for any help.
> 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
http://users.telenet.be/ws36637/articles.html
--
Patrick Hughes
"Ercan Ardal" <er...@tekhnelogos.com> wrote in message
news:4844...@newsgroups.borland.com...
Er-Djan
"Remy Lebeau (TeamB)" <no....@no.spam.com>, iletisinde şunu yazdı,
news:4845...@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
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...
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