1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00
QB64-PE/internal/help/_PRINTMODE.txt

43 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_PRINTMODE}}
2017-10-10 14:55:21 +00:00
The [[_PRINTMODE]] statement sets the text or [[_FONT]] printing mode on a background image when using [[PRINT]] or [[_PRINTSTRING]].
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: [[_PRINTMODE]] {''_KEEPBACKGROUND''|''_ONLYBACKGROUND''|''_FILLBACKGROUND''}[, {{Parameter|imageHandle&}}]
{{Parameters}}
2017-10-10 14:55:21 +00:00
* One of 3 mode keywords is mandatory when using this statement to deal with the text background.
**''_KEEPBACKGROUND'' (mode 1): Text background transparent. Only the text is displayed over anything behind it.
**''_ONLYBACKGROUND'' (mode 2): Text background only is displayed. Text is transparent to anything behind it.
**''_FILLBACKGROUND'' (mode 3): Text and background block anything behind them like a normal [[PRINT]]. '''Default setting.'''
* If the optional {{Parameter|imageHandle&}} is omitted or = 0) it will use the current [[_DEST|destination]] image background.
2016-03-18 11:36:04 +00:00
{{PageDescription}}
2017-10-10 14:55:21 +00:00
* Use the [[_PRINTMODE (function)]] to find the current [[_PRINTMODE]] setting mode number.
* '''The _PRINTMODE statement and function can only be used in graphic screen modes, not SCREEN 0'''
2017-10-10 14:55:21 +00:00
{{PageExamples}}
''Example:'' Using _PRINTMODE with [[PRINT]] in a graphic screen mode. The background used is CHR$(219) = █
{{CodeStart}} '' ''
{{Cl|SCREEN (statement)|SCREEN}} 12
{{Cl|COLOR}} 8: {{Cl|LOCATE}} 10, 10: {{Cl|PRINT}} {{Cl|STRING$}}(3, 219) 'background
{{Cl|_PRINTMODE}} _KEEPBACKGROUND
{{Cl|COLOR}} 15: {{Cl|LOCATE}} 10, 10: {{Cl|PRINT}} {{Cl|_PRINTMODE}}
{{Cl|END}} '' ''
{{CodeEnd}}
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[_PRINTMODE (function)]]
* [[_PRINTSTRING]]
* [[_LOADFONT]]
* [[_NEWIMAGE]]
2016-03-18 11:36:04 +00:00
* [[PRINT]], [[_PRINT USING]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<