Changeset 782
- Timestamp:
- Jul 13, 2007, 6:44:44 PM (17 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/controls.tcl
r761 r782 517 517 set row 0 518 518 foreach name $showing { 519 set expand 0 ;# most controls float to top 520 519 521 set wl $_name2info($name-label) 520 522 if {$wl != "" && [winfo exists $wl]} { … … 539 541 grid rowconfigure $_frame $row -weight 1 540 542 grid columnconfigure $_frame 1 -weight 1 543 set expand 1 541 544 } 542 545 } 543 546 GroupEntry { 544 547 $wv configure -heading yes 548 549 # 550 # Scan through all children in this group 551 # and see if any demand more space. If the 552 # group contains a structure or a note, then 553 # make sure that the group itself is set to 554 # expand/fill. 555 # 556 set queue [winfo children $wv] 557 while {[llength $queue] > 0} { 558 set w [lindex $queue 0] 559 set queue [lrange $queue 1 end] 560 set c [winfo class $w] 561 if {[lsearch {DeviceEditor Note} $c] >= 0} { 562 set expand 1 563 break 564 } 565 eval lappend queue [winfo children $w] 566 } 567 if {$expand} { 568 grid $wv -sticky nsew 569 grid rowconfigure $_frame $row -weight 1 570 } 545 571 } 546 572 Note { 547 573 grid $wv -sticky nsew 548 574 grid rowconfigure $_frame $row -weight 1 575 set expand 1 549 576 } 550 577 } … … 566 593 # hidden items come and go. 567 594 # 568 if {[llength $hidden] > 0 } {595 if {[llength $hidden] > 0 && !$expand} { 569 596 grid rowconfigure $_frame 99 -weight 1 570 597 } else { -
trunk/gui/scripts/deviceViewer1D.tcl
r767 r782 16 16 # ====================================================================== 17 17 package require Itk 18 package require Img 18 19 package require BLT 19 20
Note: See TracChangeset
for help on using the changeset viewer.