Transparent window with Button and Embedded Browser

F-IN-BOX for Delphi / Builder C++ / VCL
jfgaudreault
Posts: 3
Joined: Tue Mar 24, 2009 11:03 pm

Transparent window with Button and Embedded Browser

Postby jfgaudreault » Tue Mar 24, 2009 11:10 pm

Hi,

I would like to have a transparent window with a TransparentFlashPlayerControl on it so that I can see trough the window but with flash animation playing transparently; but I would also like to be able to overlay other normal Delphi components on the form/window such as TButton, bitmaps, an embedded browser control, etc...

However it does not seem to work as everything becomes transparent when I set MakeParentTransparent to true.

Is there a way to do what I'm trying to do?

Thanks,
Jean-Frederic

coolshadow
Posts: 67
Joined: Fri Oct 10, 2008 7:42 am

Postby coolshadow » Wed Mar 25, 2009 5:39 am

May be you can put your button into the flash, and then use flashcall or fscommand to do something.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: Transparent window with Button and Embedded Browser

Postby Softanics » Wed Mar 25, 2009 8:29 am

Jean-Frederic,

You need a different alpha for different pixels of a window? Or you just need, for example, 50% transparency for a whole window?

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

jfgaudreault
Posts: 3
Joined: Tue Mar 24, 2009 11:03 pm

Postby jfgaudreault » Wed Mar 25, 2009 2:10 pm

I need a different alpha for each pixel... that is the problem.

I found a way to actually have set the background to transparent or not (0 or 1), by setting a transparent background color on the form; but it looks ugly for for flash animation with semi transparency alpha... and I need pixel based alpha transparency anyway.

jfgaudreault
Posts: 3
Joined: Tue Mar 24, 2009 11:03 pm

Postby jfgaudreault » Wed Mar 25, 2009 2:13 pm

coolshadow wrote:May be you can put your button into the flash, and then use flashcall or fscommand to do something.


I was thinking about that also, but there are too many visual controls that I would like to use in Delphi. The best would be able to use both (flash controls and Delphi controls).

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Mar 25, 2009 3:54 pm

Unfortunaly, layered windows (f-in-box uses such windows to achieve transparent effect) don't show childs controls, this is a windows limitation.

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 7 guests

cron