Re: Drag cursors (curses!!)
Posted: Fri Aug 07, 2009 12:12 pm
by torrie >> Thu, 29 Aug 2002 7:48:45 GMT
Hi
Just making the form transparent only makes the form completely transparent, child controls are not affected. I tried but had some problems with redrawing and the form sometimes being painted and sometimes not.
We have had more luck using layered windows Window Style to HML_WS_EX_LAYERED. This allows you to make one colour transparent or to fade out the whole form from completely invisible to completly visible.
iStyle := call hmlGetWindowLong( hwnd, HML_GWL_EXSTYLE );
call hmlSetWindowLong( hwnd, HML_GWL_EXSTYLE, iStyle.bitXor(HML_WS_EX_LAYERED));
call hmlSetLayeredWindowAttributes( hwnd, White, vScroll1.value.Character, HML_LWA_ALPHA );
For more information check out the API calls on the microsoft web site.
Torrie
Hi
Just making the form transparent only makes the form completely transparent, child controls are not affected. I tried but had some problems with redrawing and the form sometimes being painted and sometimes not.
We have had more luck using layered windows Window Style to HML_WS_EX_LAYERED. This allows you to make one colour transparent or to fade out the whole form from completely invisible to completly visible.
iStyle := call hmlGetWindowLong( hwnd, HML_GWL_EXSTYLE );
call hmlSetWindowLong( hwnd, HML_GWL_EXSTYLE, iStyle.bitXor(HML_WS_EX_LAYERED));
call hmlSetLayeredWindowAttributes( hwnd, White, vScroll1.value.Character, HML_LWA_ALPHA );
For more information check out the API calls on the microsoft web site.
Torrie