06-15-2024, 02:32 AM
When exactly is _RESIZE supposed to detect that a screen has resized?
What I thought is that _RESIZE will change to -1 (TRUE) when the borders are resized manually. However, the SCREEN statement is triggering a _RESIZE as well, but it's not consistent. (see code below)
Having SCREEN trigger a resize makes some sense I suppose, but without consistency it's rather difficult to program for.
Is _RESIZE supposed to be going -1 when the SCREEN statement is used? In my opinion it would be better if it didn't.
What I thought is that _RESIZE will change to -1 (TRUE) when the borders are resized manually. However, the SCREEN statement is triggering a _RESIZE as well, but it's not consistent. (see code below)
Having SCREEN trigger a resize makes some sense I suppose, but without consistency it's rather difficult to program for.
Is _RESIZE supposed to be going -1 when the SCREEN statement is used? In my opinion it would be better if it didn't.
Code: (Select All)
$RESIZE:ON
PRINT _RESIZE ' no resize event triggered for SCREEN 0
SLEEP ' REM in front of this line has no effect on SCREEN _NEWIMAGE triggering a resize event
SCREEN _NEWIMAGE(640, 480, 32)
PRINT _RESIZE ' resize event triggered
SLEEP ' REM this line and the SCREEN statement below will not trigger a _RESIZE event
SCREEN _NEWIMAGE(800, 600, 32)
PRINT _RESIZE ' resize only triggered if sleep statement above not REM'ed