X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/6a5fa4e03967ab980cdc7ef96a42400bc29b4414..d3724d6d55dbf3264fbab8ff69aae88aa4d7632f:/res/whead.tcl diff --git a/res/whead.tcl b/res/whead.tcl index d437925..a46bb92 100644 --- a/res/whead.tcl +++ b/res/whead.tcl @@ -78,10 +78,10 @@ global NoticePanelHeight set visual [winfo screenvisual $win] set depth [winfo screendepth $win] -#set screenwidth [winfo screenwidth $win] -#set screenheight [winfo screenheight $win] -set screenwidth 1200 -set screenheight 900 +set screenwidth [winfo screenwidth $win] +set screenheight [winfo screenheight $win] +#set screenwidth 1200 +#set screenheight 900 if {!(("$visual" == "pseudocolor") || ("$visual" == "truecolor") || @@ -119,8 +119,8 @@ wm iconname $win {Micropolis Controls} wm geometry $win 1200x900+0+0 #wm positionfrom $win user wm withdraw $win -#wm maxsize $win $screenwidth $screenheight -#wm minsize $win 100 100 +wm maxsize $win $screenwidth $screenheight +wm minsize $win 100 100 wm protocol $win delete "DeleteHeadWindow $win ;" wm fullscreen $win on @@ -656,7 +656,7 @@ place configure $win.col1\ -x 0\ -y 0\ -width $HeadPanelWidth\ - -height $screenheight + -relheight 1.0 pack append $win.col1\ $win.col1.w1 {top frame nw fillx} \ @@ -684,8 +684,17 @@ pack append $win.col1\ place configure $win.col2\ -x [expr "$HeadPanelWidth + 5"]\ -y 0\ - -width [expr "($screenwidth - $HeadPanelWidth) - 5"]\ - -height $screenheight + -relheight 1.0\ + -width [expr "($screenwidth - $HeadPanelWidth) - 5"] + +proc resizeeditor {win width} { + global HeadPanelWidth + + place configure $win.col2\ + -width [expr "($width - $HeadPanelWidth) - 5"] +} + +bind $win "resizeeditor $win %w" #pack append $win.col2\ # $win.col2.x1 {top frame nw fillx} \