LinkWindow $win.zones $win.topframe.zones
tk_bindForTraversal $win.topframe.zones
bind $win.topframe.zones <F10> {tk_firstMenu %W}
-bind $win.topframe.zones <Mod2-Key> {tk_traverseToMenu %W %A}
+bind $win.topframe.zones <Alt-Key> {tk_traverseToMenu %W %A}
tk_menus $win $win.topframe.zones
SetHelp $win.topframe.zones Map.Zones
-font [Font $win Medium]
tk_bindForTraversal $win.topframe.zones.m
bind $win.topframe.zones.m <F10> {tk_firstMenu %W}
-bind $win.topframe.zones.m <Mod2-Key> {tk_traverseToMenu %W %A}
+bind $win.topframe.zones.m <Alt-Key> {tk_traverseToMenu %W %A}
$win.topframe.zones.m add radiobutton\
-label {All}\
-variable MapState.$win\
LinkWindow $win.overlays $win.topframe.overlays
tk_bindForTraversal $win.topframe.overlays
bind $win.topframe.overlays <F10> {tk_firstMenu %W}
-bind $win.topframe.overlays <Mod2-Key> {tk_traverseToMenu %W %A}
+bind $win.topframe.overlays <Alt-Key> {tk_traverseToMenu %W %A}
tk_menus $win $win.topframe.overlays
SetHelp $win.topframe.overlays Map.Overlays
-font [Font $win Medium]
tk_bindForTraversal $win.topframe.overlays.m
bind $win.topframe.overlays.m <F10> {tk_firstMenu %W}
-bind $win.topframe.overlays.m <Mod2-Key> {tk_traverseToMenu %W %A}
+bind $win.topframe.overlays.m <Alt-Key> {tk_traverseToMenu %W %A}
$win.topframe.overlays.m add radiobutton\
-label {Population Density}\
-variable MapState.$win\
-value 13\
-command "SetMapState $win 13"
+button $win.topframe.hide\
+ -text {Hide Map}\
+ -font [Font $win Medium]\
+ -borderwidth 1\
+ -command "HideMap $win" \
+ -relief flat
+LinkWindow $win.hide $win.topframe.hide
+tk_bindForTraversal $win.topframe.hide
+
+proc HideMap {win} {
+ pack unpack $win.centerframe
+ $win.topframe.hide configure \
+ -text {Show Map}\
+ -command "ShowMap $win"
+}
+
+proc ShowMap {win} {
+ pack append $win\
+ $win.centerframe {top frame center fill}
+ $win.topframe.hide configure \
+ -text {Hide Map}\
+ -command "HideMap $win"
+}
+
label $win.topframe.legend\
-bitmap "@images/legendn.xpm" \
-font [Font $win Medium]
pack append $win.topframe\
$win.topframe.zones {left frame nw} \
$win.topframe.overlays {left frame nw} \
+ $win.topframe.hide {left frame nw} \
$win.topframe.legend {right frame ne}
pack append $win\