F-IN-BOX Delphi Edition Help >> How to

How to create a translucency form

Using FlashPlayerControl you are able to create applications based on transparent flash movies. You can create applications with translucency non-rectangle forms (windows). Use Flash to make applications with modern user interface, make a business logic using Delphi or Builder.

Use TTransparentFlashPlayerControl Component to work with transparency.

  1. Put TTransparentFlashPlayerControl on a form.
  2. Set MakeParentTransparent property to True. That's all!

Please note that form transparency is supported only under Win2k (or higher), 16 / 32 bpp display mode. To check if the transparency is supported use global function IsFormTransparentAvailable:

[ Delphi ]
if Not IsFormTransparentAvailable then
begin
  ShowMessage('Translucency based on Flash is not available');
  Application.Terminate;
end;

[ Builder C++ ]
if (!Flashplayercontrol::IsFormTransparentAvailable())
{
  ShowMessage("Translucency based on Flash is not available");
  Application->Terminate();
}

More about TFlashPlayerControl
Copyright © Softanics. All rights reserved
F-IN-BOX is a registered trademark of Softanics|Delphi is a trademark of Borland Software Corporation|Macromedia and Shockwave Flash are trademarks of Adobe, Inc.