Jump to content

GUI/Maximum window dimensions: Difference between revisions

m
→‎{{header|Nimrod}}: Added IUP example
m (→‎{{header|Perl}}: Add missing library section.)
m (→‎{{header|Nimrod}}: Added IUP example)
Line 390:
{{out}}
<pre>WxH=1280x800</pre>
{{libheader|IUP}}
<lang nimrod>import
iup
 
# assumes you have the iup .dll or .so installed
 
discard iup.open(nil,nil)
 
var scrnFullSize = GetGlobal("FULLSIZE")
var scrnSize = GetGlobal("SCREENSIZE")
var scrnMInfo = GetGlobal("MONITORSINFO")
var scrnVScreen = GetGlobal("VIRTUALSCREEN")
 
var dlg = Dialog(nil)
SetAttribute(dlg, "SIZE", "FULL")
var scrnXSize = GetAttribute(dlg,"MAXSIZE")
 
echo scrnFullSize, "\n", scrnSize, "\n", scrnMInfo, "\n", scrnVScreen, "\n", scrnXSize
 
discard iup.Alarm("Screen client size", scrnFullSize ,"Ok",nil, nil)
 
#discard iup.mainloop()
iup.close()</lang>
{{out}}
<pre>1280x800
1280x800
0 0 1280 800
 
0 0 1280 800
65535x65535</pre>
 
=={{header|PARI/GP}}==
118

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.