RosettaCodeData/Task/GUI-Maximum-window-dimensions/Tcl/gui-maximum-window-dimensions-2.tcl

16 lines
383 B
Tcl
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
TYPE syswindowstru
screenheight AS INTEGER
screenwidth AS INTEGER
maxheight AS INTEGER
maxwidth AS INTEGER
END TYPE
DIM syswindow AS syswindowstru
' Determine the height and width of the screen
syswindow.screenwidth = Screen.Width / Screen.TwipsPerPixelX
syswindow.screenheight=Screen.Height / Screen.TwipsPerPixelY
' Make adjustments for window decorations and menubars