... windowdesktop defines. Does a function exists that returns the selected value :?: Possible values are 100 ( normal ), 125 and 150 % The problem GETCURSORPOS() works only with selecting 100 % scalefactor other selections must be adjusted with a defined factor : local hDeskTop := GETDC(0) local ...
other resolution with a factor 1.25 -> 1600 x 900 with 125 % zoom I tested and works as well !! I think there is not much to do, we only have to define the selected zoom-factor. of the possible selection of 100, 125, 150 or 175 ( zoom )
Cristobal I adjusted the top / left values of < GETCURSORPOS() > with a factor 1.25 -> 1920 x 1080 of 125 % zoom linear with a factor 1.5 -> 1920 x 1080 of 150 % zoom I tested all monitor areas with perfect results. maybe we doen't need ...
Cristobal, all tests are using FUNCTION GETCOLOR() local hDeskTop := GETDC(0) local a := GETCURSORPOS() local nColor := GETPIXEL( hDeskTop, a[2], a[1] ) local hDC := oDlg:GETDC() local hPen := CREATEPEN( PS_SOLID, 1.5, CLR_HRED ) local hOldPen local nTop, nLeft local ...
And generic function for calculate, please test it and tell me //----------------------------------------------------------------------------//// Calculate nZoom and/or DPIsFunction CalcZoom( oWnd ) // { nZoom, DPIs } Local aZooms := { { 100, 096 }, ...
I found this HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics But this is better #define LOGPIXELSX 88#define LOGPIXELSY 90Function GetLogPixels() local hDCM := oMWnd:GetDC() ? GetDeviceCaps( hDCM, LOGPIXELSX ...
Cristobal, do You think there is any solution to respect this setting and adjust the returnvalues of < GetCursorPos() > ? regards Uwe :?: It's possible with DPI SCaling, but developing a function may be complicated to adjust DPI Scaling Level Value data Smaller 100% (default) ...