I have read some questions about this in the last week or so, on stackoverflow.
My requirement is more or less the same.
I need to put a semi-transparent layer on top my form, but this form may have several other components: Lists, Edits, Labels, Images ,etc
I need this semi-transparent layer to be on top of all that.
The idea is to fade areas of the form that the use those not, or cannot access in that moment.
I use Delphi 2007.
Thanks
Best Answer
Here is an demo app using an alpha blended transparent TForm as the fade shadow. The main difference between this and Andreas's example is that this code handles nested controls and does not use any window regions.
MainForm.pas:
MainForm.dfm:
Shadow.pas:
Shadow.dfm:
ShadowDemo.dpr: