Search found 49 matches: getcursorpos

Return to advanced search

Return-value of the selected Windows-scalefactor ?

... 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 ...
by ukoenig
Tue Jan 26, 2021 9:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Return-value of the selected Windows-scalefactor ?
Replies: 2
Views: 344

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

Christobal,

175 % tested and works as well ( but to big )

Image

There is also a function for monitor

STDAPI GetScaleFactorForMonitor(
_In_ HMONITOR hMon,
_Out_ DEVICE_SCALE_FACTOR *pScale
);


regards
Uwe :D
by ukoenig
Sat Nov 18, 2017 8:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

Yes, I know this, but

You are used 1.25 number for adjust
You are tested with zoom selected 175 ?
by cnavarro
Sat Nov 18, 2017 8:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

Christobal,

windows offers only these 4 values from a list
I found only 125 % is making sense to get bigger symbols visible on the desktop

Image

regards
Uwe
by ukoenig
Sat Nov 18, 2017 8:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

ukoenig wrote:Cristobal

other resolution with a factor 1.25 -> 1600 x 900 with 125 % zoom I tested and works as well !!

it is only the possible selection of 100, 125, 150 or 175 ( zoom )

regards
Uwe


And with zoom different to 125 run OK also?
by cnavarro
Sat Nov 18, 2017 8:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

Cristobal

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 )

regards
Uwe
by ukoenig
Sat Nov 18, 2017 8:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

Uwe, run OK with all factor zoom and all resolutions ? ( 125% is 1.25 )
by cnavarro
Sat Nov 18, 2017 8:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

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 ...
by ukoenig
Sat Nov 18, 2017 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

Yes, that should be the next step, but I need if you can prove it right
Ok?
by cnavarro
Tue Nov 14, 2017 5:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

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 ...
by ukoenig
Tue Nov 14, 2017 5:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

And generic function for calculate, please test it and tell me //----------------------------------------------------------------------------//// Calculate nZoom and/or DPIsFunction CalcZoom( oWnd )   // { nZoom, DPIs }   Local aZooms := { { 100, 096 }, ...
by cnavarro
Mon Nov 13, 2017 4:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

And for know zoom active #define LOGPIXELSX    88#define LOGPIXELSY    90#define ASPECTX                     40#define ASPECTY                     42#define ASPECTXY                    44//----------------------------------------------------------------------------//Function GetLogPixels()  ...
by cnavarro
Mon Nov 13, 2017 3:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

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 &#...
by cnavarro
Mon Nov 13, 2017 2:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

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) ...
by cnavarro
Mon Nov 13, 2017 2:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

Cristobal,

do You think there is any solution
to respect this setting and adjust the returnvalues of < GetCursorPos() > ?

regards
Uwe :?:
by ukoenig
Mon Nov 13, 2017 2:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4910
Next

Return to advanced search