1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 14:25:53 +00:00
QB64-PE/internal/help/$SCREENHIDE.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

37 lines
1.4 KiB
Plaintext

The '''$SCREENHIDE''' [[Metacommand]] can be used to hide the main program window throughout a program.
{{PageSyntax}}
::: $SCREENHIDE
* $SCREENHIDE may be used at the start of a program to hide the main program window when using a [[$CONSOLE|console]] window.
* $SCREENHIDE must be used before the [[$SCREENSHOW]] [[Metacommand]] can be used!
* The [[_SCREENHIDE]] statement must be used before [[_SCREENSHOW]] can be used in sections of a program.
* '''QB64 [[Metacommand]]s require that commenting or [[REM]] NOT be used!'''
''Example:'' Hiding a program when displaying a message box in Windows.
{{CodeStart}} '' ''
{{Cl|$SCREENHIDE}}
{{Cl|DECLARE DYNAMIC LIBRARY}} &quot;user32&quot;
{{Cl|FUNCTION}} MessageBoxA&amp; ({{Cl|BYVAL}} hWnd%&amp;, {{Cl|BYVAL}} lpText%&amp;, {{Cl|BYVAL}} lpCaption%&amp;, {{Cl|BYVAL}} uType~&amp;)
{{Cl|DECLARE LIBRARY|END DECLARE}}
{{Cl|DECLARE DYNAMIC LIBRARY}} &quot;kernel32&quot;
{{Cl|SUB}} ExitProcess ({{Cl|BYVAL}} uExitCode~&amp;)
{{Cl|DECLARE LIBRARY|END DECLARE}}
{{Cl|DIM}} s0 {{Cl|AS}} {{Cl|STRING}}
{{Cl|DIM}} s1 {{Cl|AS}} {{Cl|STRING}}
s0 = &quot;Text&quot; + {{Cl|CHR$}}(0)
s1 = &quot;Caption&quot; + {{Cl|CHR$}}(0)
ExitProcess MessageBoxA(0, {{Cl|_OFFSET (function)|_OFFSET}}(s0), {{Cl|_OFFSET(function)|_OFFSET}}(s1), 0)
{{CodeEnd}}{{small|Code by Michael Calkins}}
''See also:''
* [[$CONSOLE]], [[$SCREENSHOW]] {{text|(QB64 [[Metacommand]])}}
* [[_SCREENHIDE]], [[_SCREENSHOW]]
* [[_CONSOLE]]
{{PageNavigation}}