Changeset 3642 for trunk/gui/scripts/spinint.tcl
- Timestamp:
- May 9, 2013 11:29:37 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/spinint.tcl
r3454 r3642 18 18 option add *Spinint.width 5 widgetDefault 19 19 option add *Spinint.textBackground white widgetDefault 20 21 blt::bitmap define Spinint-up {22 #define up_width 823 #define up_height 424 static unsigned char up_bits[] = {25 0x10, 0x38, 0x7c, 0xfe};26 }27 28 blt::bitmap define Spinint-down {29 #define arrow_width 830 #define arrow_height 431 static unsigned char arrow_bits[] = {32 0xfe, 0x7c, 0x38, 0x10};33 }34 20 35 21 itcl::class Rappture::Spinint { … … 82 68 83 69 itk_component add up { 84 button $itk_component(controls).spinup -bitmap Spinint-up \ 70 button $itk_component(controls).spinup \ 71 -image [Rappture::icon intplus] \ 85 72 -borderwidth 1 -relief raised -highlightthickness 0 \ 86 73 -command [itcl::code $this bump up] … … 88 75 usual 89 76 ignore -borderwidth -highlightthickness 77 rename -background -buttonbackground buttonBackground Background 90 78 } 91 pack $itk_component(up) -side top-expand yes -fill both79 pack $itk_component(up) -side left -expand yes -fill both 92 80 93 81 itk_component add down { 94 button $itk_component(controls).spindn -bitmap Spinint-down \ 82 button $itk_component(controls).spindn \ 83 -image [Rappture::icon intminus] \ 95 84 -borderwidth 1 -relief raised -highlightthickness 0 \ 96 85 -command [itcl::code $this bump down] … … 98 87 usual 99 88 ignore -borderwidth -highlightthickness 89 rename -background -buttonbackground buttonBackground Background 100 90 } 101 pack $itk_component(down) -side bottom-expand yes -fill both91 pack $itk_component(down) -side right -expand yes -fill both 102 92 103 93 eval itk_initialize $args
Note: See TracChangeset
for help on using the changeset viewer.