Ignore:
Timestamp:
May 9, 2013, 11:29:37 AM (11 years ago)
Author:
mmc
Message:

Fixes for nanoHUB ticket #258058 and #258045 -- note within a group tab
doesn't fill out the area properly. Should work better now. Also fixed
tabs to contain the window, instead of floating above the cotents as they
have for a long time.

Fixed boolean controls to have a more obvious on/off switch instead of a
checkbox. Fixed integers and spinners to use larger +/- buttons that are
easier to press on an iPad. Fixed numbers and other gauges to have the
same relief style as entries and other widgets.

Added new layout styles to groups: horizontal, vertical, tabs, and sentence.
You can now explicitly make a layout vertical instead of tabs by setting
the layout to "vertical" instead of throwing in a separator. Updated the
zoo/groups example to show off new horizontal and sentence types.

Fixed the "drawing" example in the zoo to gray out the trapezoid top when
it is disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/switch.tcl

    r3510 r3642  
    4141
    4242    itk_component add button {
    43         button $itk_interior.value \
    44             -compound left \
     43        button $itk_interior.value -compound left \
    4544            -overrelief flat -relief flat -padx 3 -pady 0 -bd 0 \
    4645            -command [itcl::code $this _toggle]
     
    114113    if { $_value } {
    115114        if {$itk_option(-showimage)} {
    116             set image [Rappture::icon cbon]
     115            set image [Rappture::icon switch1]
    117116        }
    118117        if {$itk_option(-showtext)} {
     
    121120    } else {
    122121        if {$itk_option(-showimage)} {
    123             set image [Rappture::icon cboff]
     122            set image [Rappture::icon switch0]
    124123        }
    125124        if {$itk_option(-showtext)} {
Note: See TracChangeset for help on using the changeset viewer.