Difference between revisions of "RESIZE (function)"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 8: Line 8:


''Details:''
''Details:''
* The function returns -1 if a resize was attempted by the user.  
* The function returns -1 if a program screen re-size was attempted by the user in '''QB64 GL''' only.  
* After the function returns -1, [[_RESIZEWIDTH]] and [[_RESIZEHEIGHT]] can return the new dimensions in pixels.
* After the function returns -1, [[_RESIZEWIDTH]] and [[_RESIZEHEIGHT]] can return the new dimensions in pixels.
* The [[$RESIZE]]:ON [[metacommand]] must be used so the program is created with a user resizable window.
* The [[$RESIZE]]:ON [[metacommand]] must be used so the program is created with a user resizable window.

Revision as of 18:03, 22 July 2013

The _RESIZE function returns -1 when a user has attempted to resize the program window and $RESIZE:ON has allowed it.


Syntax

IF _RESIZE THEN rx& = _RESIZEWIDTH: ry& = _RESIZEHEIGHT


Details:

  • The function returns -1 if a program screen re-size was attempted by the user in QB64 GL only.
  • After the function returns -1, _RESIZEWIDTH and _RESIZEHEIGHT can return the new dimensions in pixels.
  • The $RESIZE:ON metacommand must be used so the program is created with a user resizable window.


See also:



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page