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.2 by greg, Fri Oct 28 10:43:38 1994 UTC vs.
Revision 2.3 by greg, Fri Oct 28 17:55:06 1994 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines