GUI/Maximum window dimensions: Difference between revisions

Content added Content deleted
Line 52: Line 52:


== {{header|Visual Basic}} ==
== {{header|Visual Basic}} ==

=== Method 1 ===

The first method involves querying the screen dimensions and then subtracting pixels used by the frame and desktop bars:


<lang vb>TYPE syswindowstru
<lang vb>TYPE syswindowstru
Line 68: Line 72:


' Make adjustments for window decorations and menubars</lang>
' Make adjustments for window decorations and menubars</lang>

=== Method 2 ===

The alternative method is to create a form that is maximized and then query its dimensions (similar to the method used in gambas).