views:

499

answers:

2

I wish to get a TPanel or TImage to show a dimmed background (with a veil), anyone knows how to accomplish this in Delphi (2010)? I would prefer not to use a component if possible, just raw code. The idea is that when showing a new form the parent one visually shows the user it's "disabled".

Something like this: alt text

A: 

Maybe this can help you.

Regarding:

I would prefer not to use a component if possible, just raw code.

You can instantiate and use components from code, not only in the form designer.

Ulrich Gerhardt
I know I can create components at run time but for such small tasks I always prefer to use raw code whenever possible.
smartins
What's the difference between "raw code" and using a component from code? :-)
Ulrich Gerhardt
+2  A: 

This is the method that I use for my main form and then for all other forms that need the effect. http://delphi.about.com/od/delphitips2008/qt/form%5Fdimmer.htm

AlienHeadDiscs
Perfect, exactly what I needed. Thanks!
smartins