by ukoenig » Wed May 06, 2015 9:51 pm
The needed calculation on window-resize
( I can add a compiled sample + source if needed )
Logo :@ nLTop, nLLeft IMAGE oLogo ; // Top / Left
FILENAME c_Path1 + cLogo ;
NOBORDER ;
OF oWnd PIXEL UPDATE TRANSPARENTThe calculation to center the image-position on window-resize :oWnd:bResized := {|| nLTop := INT( ( ( oWnd:nHeight ) / 2 ) - ( oLogo:nHeight / 2 ) ), ;
nLLeft := INT( ( ( oWnd:nWidth - 18 ) / 2 ) - ( oLogo:nWidth / 2 ) ), ;
oLogo:Move( nLTop, nLLeft, , , .T. ) }best regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.