mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-26 16:45:53 +00:00
6e01fc8dce
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.
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
The {{KW|_DEFAULTCOLOR}} function returns the current default text color for an image handle or page.
|
|
|
|
|
|
{{PageSyntax}}
|
|
:''result&'' = {{KW|_DEFAULTCOLOR}} [({{Parameter|imageHandle&}})]
|
|
|
|
|
|
{{PageDescription}}
|
|
* If {{Parameter|imageHandle&}} is omitted, it is assumed to be the current write page or image designated by [[_DEST]].
|
|
* If {{Parameter|imageHandle&}} is an invalid handle, an [[ERROR Codes|invalid handle]] error occurs. Check handle values first!
|
|
* Default foreground colors: [[SCREEN]] 0 = 7, [[SCREEN]] 1 and 10 = 3, [[SCREEN]] 2 and 11 = 1. All other [[SCREEN]]s = 15.
|
|
|
|
|
|
''Example:'' The default color is the color assigned to the text foreground. The [[SCREEN]] 12 default is [[COLOR]] 15.
|
|
{{CodeStart}} '' ''
|
|
{{Cl|SCREEN}} 12
|
|
{{Cl|OUT}} {{Cl|&H}}3C8, 0: {{Cl|OUT}} {{Cl|&H}}3C9, 63: {{Cl|OUT}} {{Cl|&H}}3C9, 63: {{Cl|OUT}} {{Cl|&H}}3C9, 63 'assign background RGB intensities
|
|
{{Cl|OUT}} {{Cl|&H}}3C8, 8: {{Cl|OUT}} {{Cl|&H}}3C9, 0: {{Cl|OUT}} {{Cl|&H}}3C9, 0: {{Cl|OUT}} {{Cl|&H}}3C9, 0 'assign RGB intensities to COLOR 8
|
|
{{Cl|_PRINTMODE }} _KEEPBACKGROUND
|
|
{{Cl|COLOR}} 8 'assign color 8 to text foreground
|
|
{{Cl|PRINT}} "The default color is attribute"; {{Cl|_DEFAULTCOLOR}} '' ''
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[COLOR]]
|
|
* [[_DEST]]
|
|
* [[Images]]
|
|
* [[Windows_Libraries#Color_Dialog_Box|Color Dialog Box]]
|
|
|
|
|
|
{{PageNavigation}} |