Looking over a few old programs on my drive, I came across one which gave me the border size and title bar height for my program, and I thought I'd share:
_SCREENMOVE 200, 200 'We moved our screen to 200,200 so we know these values are correct BorderWidth = glutGet(506)
TitleBarHeight = glutGet(507)
ActualScreenX = glutGet(100)
ActualScreenY = glutGet(101)
PRINT "The border is "; BorderWidth;
"pixels" PRINT "And the title bar is"; TitleBarHeight;
" pixels" PRINT "So your actual display starts at ("; ActualScreenX;
","; ActualScreenY;
")"
I'm guessing since this is a glut command, it should work cross-platform for all the Linux/Mac folks, but I won't swear to it. I've only got a Win 10 PC available ATM to test things on, and it works as advertised for me...
I honestly have no idea where I got the 100, 101, 506, 507 values, or what they actually represent here -- all I know is they seem to work and give me the relevant information which I'd want back.
For folks who use _SCREENCLICK and _MOUSEMOVE and such (like Pete and Cobolt), this might help you guys calculate where your actual buttons are on a screen and make it easier to interact with them, so I thought I'd share, even though it's basically still a mystery to me what the heck those values represent. :P