ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/trad.wsh
(Generate patch)

Comparing ray/src/util/trad.wsh (file contents):
Revision 2.1 by greg, Thu Oct 27 15:56:13 1994 UTC vs.
Revision 2.4 by greg, Fri Oct 28 19:35:02 1994 UTC

# Line 73 | Line 73 | trace variable rifname w setrname
73  
74   # Make main window frames
75  
76 < frame .upper -geometry 830x410
76 > set smallscrn [expr [winfo screenwidth .] < 830]
77 >
78 > if $smallscrn {
79 >        frame .upper -geometry 640x410
80 >        frame .upper.right -geometry 120x410
81 > } else {
82 >        frame .upper -geometry 830x410
83 >        frame .upper.right -geometry 130x410
84 > }
85   pack .upper -side top
86 < frame .upper.right -geometry 130x410
79 < place .upper.right -x 700 -y 0
86 > place .upper.right -relx .98 -rely 0 -anchor ne
87   message .mess -relief ridge -font fixed -textvariable curmess \
88 <                -width 830 -anchor nw
88 >                -anchor nw -width 620
89   pack .mess -side top -expand yes -fill both
90   helplink .mess trad trad messages
91 + . configure -cursor top_left_arrow
92  
93   # Make mode buttons
94  
95   proc changescreen {} {          # switch screen according to curmode
96 <        global curscreen curmode curmess
96 >        global curscreen curmode curmess smallscrn
97          if [info exists curscreen] {
98                  if {"$curmode" == "$curscreen"} {return}
99                  destroy .upper.left
# Line 94 | Line 102 | proc changescreen {} {         # switch screen according to c
102          }
103          set curscreen $curmode
104          do_$curscreen .upper.left
105 <        .upper.left configure -geometry 700x410
105 >        if $smallscrn {
106 >                .upper.left configure -geometry 520x410
107 >        } else {
108 >                .upper.left configure -geometry 700x410
109 >        }
110          place .upper.left -x 0 -y 0
111   }
112  
# Line 127 | Line 139 | button .upper.right.quit -text QUIT \
139   pack .upper.right.quit -side top -pady 10 -anchor se
140   helplink .upper.right.quit trad trad quit
141  
142 < wm minsize . 830 460
142 > if $smallscrn {
143 >        wm minsize . 640 460
144 > } else {
145 >        wm minsize . 830 460
146 > }
147   wm iconbitmap . @$radlib/trad.icon
148  
149   proc gotfile {{o 1}} {          # set file possession state

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines