Link to home
Start Free TrialLog in
Avatar of sheepfarmer
sheepfarmer

asked on

Creating a transparent panel in Delphi 2009

I have a form with a number of elements on (edit boxes, buttons, labels).
The form is loaded via a backend process that takes 5-10 secs (and the use can refresh the form at will)

While its loading, I would like to leave the form visible with the egg timer, but it would be nice to grey out or blur the contents of the form while the update is happening.

The obvious way of doing this would be to display a panel covering the whole form, but with its alpha layer turned on to 50% or so, to allow tranparency.
The OS is XP or Vista.

Is this fairly easy to do?

Thanks
SF
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sheepfarmer
sheepfarmer

ASKER

I am trying to keep the original window solid (i.e. not to see any background behind) so MerijnB window trick seems to fit the bill and works reasonably well.

However, I need the captionless window to completely cover the calling form window where ever it appears on the screen (i.e. its not always centered).

How can I set the top/left position and width/height of the captionless window and panel to match the calling form window?

Thanks
SF
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, I got something workable from your suggestions.

SF