QB64 Phoenix Edition
Cursor is showing low in graphics screen - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: Cursor is showing low in graphics screen (/showthread.php?tid=3196)



Cursor is showing low in graphics screen - PhilOfPerth - 11-06-2024

I'm trying to use mouse functions to identify points on the screen, but noticed the corsor is displaying about 5 pixels below its actual point. Is this something unique to my system? I know I can compensate with my zone positions, but just curious. Try this:

Code: (Select All)
Screen _NewImage(1040, 768, 32)

PSet (175, 175)
For a = 1 To 7: Draw "d28r26u28l26r26": Next

GetMouse:
While _MouseInput
    X = _MouseX: Y = _MouseY
    Locate 2, 2: Print X, Y
Wend
GoTo GetMouse
 I want to select each cell accurately by mouse pointer, but the pointer is about 5 pixels low.


RE: Cursor is showing low in graphics screen - SMcNeill - 11-06-2024

Must be something on your end.  I'm not seeing the issue on mine.  Are you on Linux, Mac, or Windows?


RE: Cursor is showing low in graphics screen - PhilOfPerth - 11-06-2024

Using Windows 11, and the latest version of PE.; I'll try changing  a few things - screen mode etc. - and see what happens. No big deal, but something I have to keep in mind when graphicising.  Big Grin