GUI/Maximum window dimensions: Difference between revisions
Content added Content deleted
(→{{header|Icon}} and {{header|Unicon}}: Added PureBasic) |
|||
Line 59: | Line 59: | ||
{{improve|Icon|Need to handle window borders which will vary from system to system and handle or comment on additional requirements.}} |
{{improve|Icon|Need to handle window borders which will vary from system to system and handle or comment on additional requirements.}} |
||
=={{header|PureBasic}}== |
|||
<lang PureBasic>If OpenWindow(0, 0, 0, 5, 5, "", #PB_Window_Maximize + #PB_Window_Invisible) |
|||
maxX = WindowWidth(0) |
|||
maxY = WindowHeight(0) |
|||
CloseWindow(0) |
|||
MessageRequester("Result", "Maximum Window Width: " + Str(maxX) + ", Maximum Window Height: " + Str(maxY)) |
|||
EndIf</lang> |
|||
Sample output for a screen area 1600 x 1200: |
|||
<pre>Maximum Window Width: 1600, Maximum Window Height: 1181</pre> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |