On a small screen, the window is not displayed in the center
Posted: Sat Nov 03, 2018 11:51 am
On a low-resolution screen (for example: 1366x768) the window is not displayed in the center. On the 1920 by 1080 display, everything works correctly. What to do? It may be possible to determine the maximum possible size of a window (without taskbar) automatically? How do I modify this command?[/size]
Code: Select all
@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP CAPTION mFileName OBJECT oStatic1 ;
PREEVAL {|o|o:autoSize := .t.} EVAL {|o|hDC1 := GetWindowDC(o:getHWnd()), o:motion := {|a,b,o|ShowColorTr( hDC1, a, oSay, o )},;
aPixel := Array(o:caption:xSize,o:caption:ySize), o:paint := {|a,b,o|Gratest(o)}}