Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_RESIZE question
#1
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.

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
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
_RESIZE question - by TerryRitchie - 06-15-2024, 02:32 AM
RE: _RESIZE question - by SMcNeill - 06-15-2024, 03:02 AM
RE: _RESIZE question - by SMcNeill - 06-15-2024, 03:31 AM
RE: _RESIZE question - by TerryRitchie - 06-15-2024, 03:36 AM
RE: _RESIZE question - by SMcNeill - 06-15-2024, 04:04 AM
RE: _RESIZE question - by TerryRitchie - 06-15-2024, 01:44 PM



Users browsing this thread: 1 Guest(s)