GUI/Maximum window dimensions: Difference between revisions

→‎{{header|Lua}}: added Lua solution
(→‎{{header|Lua}}: added Lua solution)
Line 656:
<lang lingo>put _system.desktopRectList
-- [rect(0, 0, 1360, 768), rect(1360, 0, 2960, 1024)]</lang>
 
=={{header|Lua}}==
<lang lua>nw = require("nw")
win = nw:app():window(320, 240)
win:show()
win:maximize()
cw, ch = win:client_size()
print(cw .. " x " .. ch)</lang>
On a 1920 x 1080 screen..
{{out}}
<pre>1920 x 1017</pre>
 
=={{header|M2000 Interpreter}}==
Anonymous user