GUI/Maximum window dimensions: Difference between revisions
Content added Content deleted
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
|||
Line 511: | Line 511: | ||
</lang> |
</lang> |
||
get_size returns (1425,870) here. |
get_size returns (1425,870) here. |
||
=={{header|Phix}}== |
|||
{{trans|Nim}} |
|||
<lang Phix>include pGUI.e |
|||
IupOpen() |
|||
string scrnFullSize = IupGetGlobal("FULLSIZE") |
|||
string scrnSize = IupGetGlobal("SCREENSIZE") |
|||
string scrnMInfo = IupGetGlobal("MONITORSINFO") |
|||
string scrnVScreen = IupGetGlobal("VIRTUALSCREEN") |
|||
Ihandle dlg = IupDialog(NULL,"SIZE=FULL") |
|||
string scrnXSize = IupGetAttribute(dlg,"MAXSIZE") |
|||
?{scrnFullSize, scrnSize, scrnMInfo, scrnVScreen, scrnXSize} |
|||
IupClose()</lang> |
|||
{{Out}} |
|||
<pre> |
|||
{"1920x1080","1920x1080","0 0 1920 1080\n","0 0 1920 1080","65535x65535"} |
|||
</pre> |
|||
You could instead use atom {x,y} = IupGetIntInt(NULL,"FULLSIZE"|"SCREENSIZE"|"MAXSIZE") to get numbers instead of strings. |
|||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |