1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-05 22:50:23 +00:00
QB64-PE/internal/help/_RESIZE_(function).txt
2016-03-18 08:36:04 -03:00

22 lines
824 B
Plaintext

{{DISPLAYTITLE:_RESIZE (function)}}
The '''_RESIZE''' function returns -1 when a user has attempted to resize the program window and [[$RESIZE]]:ON has allowed it.
{{PageSyntax}}
::: 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:''
* [[$RESIZE]] {{text|(metacommand)}}
* [[_RESIZE]]
* [[_RESIZEWIDTH]], [[_RESIZEHEIGHT]] {{text|(requested pixel dimensions)}}
{{PageNavigation}}