2017-10-10 14:55:21 +00:00
|
|
|
The {{KW|WIDTH}} statement changes the text dimensions of certain {{KW|SCREEN (statement)|SCREEN}} modes.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2021-01-04 18:45:32 +00:00
|
|
|
== ''SCREEN'' Syntax ==
|
2015-08-02 12:12:44 +00:00
|
|
|
::: '''WIDTH''' ['''{{Parameter|columns%}}'''][''', {{Parameter|rows%}}''']
|
|
|
|
|
2021-01-04 18:45:32 +00:00
|
|
|
== ''File'' Syntax ==
|
2015-08-02 12:12:44 +00:00
|
|
|
::: '''WIDTH''' {'''''file_number''''' | '''''device'''''}, '''''columnwidth%'''''
|
|
|
|
|
|
|
|
|
2021-02-18 17:11:22 +00:00
|
|
|
{{PageParameters}}
|
2015-08-02 12:12:44 +00:00
|
|
|
* When parameters are not specified, columns defaults to 80 with 25 (30 in [[SCREEN]] 11 or 12) rows.
|
|
|
|
|
|
|
|
|
|
|
|
''Usage:''
|
|
|
|
* WIDTH should be used AFTER a program SCREEN statement! It does not affect screen graphics or graphic coordinates.
|
2021-02-11 11:41:53 +00:00
|
|
|
* Affects SCREEN 0 Window size and alters the text block size of each screen mode listed in QBasic:
|
2015-08-02 12:12:44 +00:00
|
|
|
:* SCREEN 0 can use 80 or 40 columns and 25, 43 or 50 rows. Default is WIDTH 80, 25.
|
|
|
|
:* SCREEN 9 can use 80 columns and 25 or 43(not supported on many monitors) rows. Default WIDTH 80, 25 fullscreen.
|
|
|
|
:* SCREEN 10 can use 80 columns and 25 or 43 rows. Default is WIDTH 80, 25 fullscreen.
|
|
|
|
:* SCREEN 11 and 12 can use 80 columns and 30 or 60 rows. Default is WIDTH 80, 30 fullscreen.
|
|
|
|
* '''QB64''' can alter all [[SCREEN]] mode widths and heights which may also affect text or [[_FONT]] block sizes.
|
2021-01-04 18:45:32 +00:00
|
|
|
* If a [[$CONSOLE]] window is active and you set [[_DEST]] [[_CONSOLE]], WIDTH will affect the console output window size (Windows only).
|
2015-08-02 12:12:44 +00:00
|
|
|
* '''Note:''' WIDTH changes may change screen color settings in QBasic. Use [[PALETTE]] to reset to default colors.
|
2017-10-10 14:55:21 +00:00
|
|
|
*'''[[Keywords currently not supported by QB64|WIDTH LPRINT is not supported in QB64.]]'''
|
|
|
|
|
|
|
|
|
2015-08-02 12:12:44 +00:00
|
|
|
{{PageSeeAlso}}
|
|
|
|
* [[SCREEN]], [[COLOR]], [[OUT]]
|
|
|
|
* [[_PRINTWIDTH]] {{text|(function)}}
|
|
|
|
* [[_WIDTH (function)]], [[_HEIGHT]] {{text|(function)}}
|
|
|
|
* [[_FONT]], [[_FONTWIDTH]], [[_FONTHEIGHT]]
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|