Possible bug with _SCREENICON
#8
(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)

Code: (Select All)
IF _SCREENX <> -32000 AND _SCREENY <> -32000 THEN
    'not minimized
ELSE
    'is minimized
END IF
However, I guess it won't work either with a hidden screen Huh

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.  Tongue
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.
Reply


Messages In This Thread
Possible bug with _SCREENICON - by Pete - 12-08-2022, 09:16 PM
RE: Possible bug with _SCREENICON - by SMcNeill - 12-08-2022, 09:32 PM
RE: Possible bug with _SCREENICON - by SMcNeill - 12-08-2022, 09:34 PM
RE: Possible bug with _SCREENICON - by Pete - 12-08-2022, 10:52 PM
RE: Possible bug with _SCREENICON - by RhoSigma - 12-08-2022, 11:25 PM
RE: Possible bug with _SCREENICON - by mnrvovrfc - 12-09-2022, 05:34 AM
RE: Possible bug with _SCREENICON - by Pete - 12-09-2022, 12:45 AM
RE: Possible bug with _SCREENICON - by SMcNeill - 12-09-2022, 01:16 AM



Users browsing this thread: 1 Guest(s)