Mr. Rao,
Thank You very much.
It works up from FWH-release December 2010. I'm still working with a older one.
I will include both Solutions.
December 2010
=============* New: TRNSPARENCY & TRANSLUCENCY OF Windows and Dialogs:
(a) oWnd:nOpacity := <nLevel> ( from 0 to 255 ) makes the Window ( normal or MDI frame ) or dialog transparent / translucent instantly.
nOpacity can be set anytime after creation of the window/dialog and even during runtime.
Level 0 is fully transparent and 255 is fully opaque.
:nOpacity := nil, turns off the transparency feature.
This does not work on child windows.
There is no way to set the nOpacity level to MDICHILD windows separately. nOpacity of MDIFRAME applies to all childwindows too.
(b) oWnd/oDlg:nSeeThroClr := <nColor> instantly makes the area with that color fully transparent (See Through). To turnoff, set :nSeeThroClr := nil.
Added Transparent-info to the Message :
Added this Information to :
FUNCTION IMAGE_INFO()
- Code: Select all Expand view
// --------------------------------
FUNCTION IMAGE_INFO()
LOCAL oDlg3, cMsgWidth := 300
LOCAL cPath := cFilePath( cImgname )
LOCAL cFile := cFileNoPath( cImgname )
DEFINE DIALOG oDlg3 FROM 90, 60 TO 310, cMsgWidth PIXEL TRANSPARENT ;
STYLE WS_POPUP BRUSH TBrush():New( "NULL" )
// You can use for FWH > Release Dezember 20100
//-------------------------------------------------------------------
// DEFINE DIALOG oDlg3 FROM 90, 60 TO 310, cMsgWidth PIXEL
// oDlg3:nOpacity := 0
nPath := oDlg3:GetWidth( "Path : " + cPath, oBigfont )
nFile := oDlg3:GetWidth( "Name : " + cFile, oBigfont )
IF nPath > nFile
cMsgWidth := nPath + 60
ELSE
cMsgWidth := nFile + 60
ENDIF
ACTIVATE DIALOG oDlg3 ;
ON INIT ( SETTRANSP( oDlg3 ), ;
oDlg3:Move( 90, 60, cMsgWidth, 270, .f. ), ;
PAINT_TITLE(oDlg3,cPath,cFile,cMsgWidth) )
// You can use for FWH > Release Dezember 20100
//-------------------------------------------------------------------
// ACTIVATE DIALOG oDlg3 ;
// ON INIT ( oDlg3:Move( 90, 60, cMsgWidth, 270, .f. ), ;
// PAINT_TITLE(oDlg3,cPath,cFile,cMsgWidth) )
RETURN( NIL )
Best Regards
Uwe