Changeset 1024 for branches/sandbox/gsascmds.tcl
- Timestamp:
- Oct 12, 2010 4:40:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sandbox/gsascmds.tcl
r1021 r1024 2350 2350 $box.can create window 0 0 -anchor nw -window [frame $box.can.f -bd 2] 2351 2351 $box.side create window 0 0 -anchor nw -window [frame $box.side.f -bd 2] 2352 2353 2352 grid columnconfig $box 1 -weight 1 2354 2353 grid rowconfig $box 1 -weight 1 … … 2383 2382 grid $box.yscroll -sticky ns -column 2 -row 1 2384 2383 } else { 2385 grid forget $box.yscroll 2384 grid forget $box.yscroll 2386 2385 } 2387 2386 if {[lindex $sizes 2] > [winfo width $box.can]} { 2388 2387 grid $box.scroll -sticky ew -column 1 -row 2 2389 2388 } else { 2390 grid forget $box.scroll 2391 } 2392 } 2389 grid forget $box.scroll 2390 } 2391 } 2392 2393 proc MouseWheelScrollTable {box} { 2394 # causes mouse wheel to operate scroll for main canvas in ScrollTable 2395 # mousewheel can be operated anywhere in parent window 2396 bind [winfo toplevel $box] <MouseWheel> "$box.can yview scroll \[expr {-abs(%D)/%D}\] unit" 2397 } 2398 2393 2399 2394 2400 # this is used in cifselect -- not sure why anymore
Note: See TracChangeset
for help on using the changeset viewer.