(12-08-2022, 11:25 PM)RhoSigma Wrote: Use _SCREENX and/or _SCREENY to check for a minimized window, they usually return -32000 then (at least on Windows)
However, I guess it won't work either with a hidden screenCode: (Select All)IF _SCREENX <> -32000 AND _SCREENY <> -32000 THEN
'not minimized
ELSE
'is minimized
END IF
At my end on Manjaro MATE, with the following code, the two functions return zero:
Code: (Select All)
$SCREENHIDE
sx = _SCREENX
sy = _SCREENY
_DELAY 5
_SCREENSHOW
print sx, sy
end
Change the dollar sign to underscore, and the only difference is that only the titlebar and window frame are drawn and shown for five seconds before the window is drawn whole with "_SCREENSHOW".
(12-09-2022, 01:16 AM)SMcNeill Wrote: Blame Glut for that. Oddly enough, it offers a cross-platform way to minimize a window (screeniconify is their name for the command, IIRC), but they don't offer anyway to restore back from inconification! Go figure.Probably they expected the programmer to reconfigure the window, or just use the same parameters as when the window was initialized and first put on the screen in the session. If that's the case it's ignorant.
I'm not sure but this is a lot like what we had to do before QB64 v1 where "FindWindow" Win API function had to be used to find the title of a window, to obtain the handle before something done to that window.