WIDTH: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The {{KW|WIDTH}} statement changes the text dimensions of certain {{KW|SCREEN (statement)|SCREEN}} modes. == ''SCREEN'' Syntax == ::: '''WIDTH''' ['''{{Parameter|columns%}}'''][''', {{Parameter|rows%}}'''] == ''File'' Syntax == ::: '''WIDTH''' {'''''file_number''''' | '''''device'''''}, '''''columnwidth%''''' {{Parameters}} * When parameters are not specified, columns defaults to 80 with 25 (30 in SCREEN 11 or 12) rows. ''Usage:'' * WIDTH should be used AFTER...")
 
m (QBasic capitalisation)
Tag: visualeditor
Line 15: Line 15:
''Usage:''
''Usage:''
* WIDTH should be used AFTER a program SCREEN statement! It does not affect screen graphics or graphic coordinates.
* WIDTH should be used AFTER a program SCREEN statement! It does not affect screen graphics or graphic coordinates.
* Affects SCREEN 0 Window size and alters the text block size of each screen mode listed in Qbasic:
* Affects SCREEN 0 Window size and alters the text block size of each screen mode listed in QBasic:
:* SCREEN 0 can use 80 or 40 columns and 25, 43 or 50 rows. Default is WIDTH 80, 25.  
:* 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 9 can use 80 columns and 25 or 43(not supported on many monitors) rows. Default WIDTH 80, 25 fullscreen.  

Revision as of 09:55, 29 April 2022

The Template:KW statement changes the text dimensions of certain Template:KW modes.


SCREEN Syntax

WIDTH [columns%][, rows%]

File Syntax

WIDTH {file_number | device}, columnwidth%


Template:Parameters

  • 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.
  • Affects SCREEN 0 Window size and alters the text block size of each screen mode listed in QBasic:
  • 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.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link