_RESIZE (function) - QB64 Wiki

_RESIZE (function)

From QB64 Wiki

Jump to: navigation, search

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.
  • 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.
  • QB64 GL programs only. Not available in QB64 SDL versions .954 and older.


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version