1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 06:15:52 +00:00
QB64-PE/internal/help/_BACKGROUNDCOLOR.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

34 lines
867 B
Plaintext

The {{KW|_BACKGROUNDCOLOR}} function returns the current background color.
{{PageSyntax}}
:{{Parameter|BGcolor&amp;}} = {{KW|_BACKGROUNDCOLOR}}
{{PageDescription}}
* Use it to get the current background color to restore later in a program.
* Will return the closest attribute value of the background color
''Example:'' Storing a background color for later use.
{{CodeStart}} '' ''
{{Cl|SCREEN}} 0
{{Cl|COLOR}} 1, 11
{{Cl|CLS}}
BG% = {{Cl|_BACKGROUNDCOLOR}}
{{Cl|PRINT}} BG% 'prints the attribute as 3 instead of 11
{{CodeEnd}}
{{BlueStart}}3
{{BlueEnd}}
:''Explanation: SCREEN 0 background colors over 7 will return the lower intensity color attribute values: EX: attribute - 8
{{PageSeeAlso}}
* [[_DEFAULTCOLOR]]
* [[COLOR]], [[SCREEN]]
* [[SCREEN (function)]]
* [[Windows_Libraries#Color_Dialog_Box|Color Dialog Box]]
{{PageNavigation}}