GUI/Maximum window dimensions: Difference between revisions

m (Omit from Logtalk)
Line 140:
ViewportWidth: 1680
</pre>
 
=={{header|FBSL}}==
In the graphics mode, Windows does it all automatically and displays a form that fills the entire area not obscured by the taskbar on your primary desktop:
<lang qbasic>#INCLUDE <Include\Windows.inc>
ShowWindow(ME, SW_MAXIMIZE)
BEGIN EVENTS
END EVENTS</lang>
 
Alternatively, one can obtain the unobscured area's dimensions using the following console script:
<lang qbasic>#APPTYPE CONSOLE
#INCLUDE <Include\Windows.inc>
 
TYPE RECT
%Left
%Top
%Right
%Bottom
END TYPE
 
DIM rc AS RECT
SystemParametersInfo(SPI_GETWORKAREA, 0, @rc, 0)
PRINT "width = ", rc.Right - rc.Left, ", height = ", rc.Bottom - rc.Top
 
PAUSE</lang>
 
A typical output for a 1680x1050 primary monitor will be:
<pre>width = 1680, height = 1017
 
Press any key to continue...</pre>
 
== {{header|Gambas}} ==