diff --git a/ChangeLog b/ChangeLog index 43bca9aa8c..671b06e506 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 19 17:36:49 2003 Hidetoshi NAGAI + + * ext/tk/sample/tkmultilistbox.rb: bug fix + + * ext/tk/sample/tkmultilistframe.rb: new sample script + Fri Dec 19 03:44:27 2003 GOTOU Yuuzou * lib/webrick/httputils.rb (parse_form_data): should return an diff --git a/ext/tk/MANIFEST b/ext/tk/MANIFEST index fb0225c27b..a1a1feb44c 100644 --- a/ext/tk/MANIFEST +++ b/ext/tk/MANIFEST @@ -34,6 +34,7 @@ sample/tkhello.rb sample/tkline.rb sample/tkmenubutton.rb sample/tkmultilistbox.rb +sample/tkmultilistframe.rb sample/tkoptdb-safeTk.rb sample/tkoptdb.rb sample/tktextframe.rb diff --git a/ext/tk/sample/tkmultilistbox.rb b/ext/tk/sample/tkmultilistbox.rb index ed5da0f21c..c3787a0cf0 100644 --- a/ext/tk/sample/tkmultilistbox.rb +++ b/ext/tk/sample/tkmultilistbox.rb @@ -174,13 +174,16 @@ class TkMultiListbox < TkListbox end # set receivers for configure methods - delegate('DELETE', *@lbox_list) + delegate('DEFAULT', *@lbox_list) delegate('activebackground', @v_scroll, *@hscr_list) delegate('troughcolor', @v_scroll, *@hscr_list) delegate('repeatdelay', @v_scroll, *@hscr_list) delegate('repeatinterval', @v_scroll, *@hscr_list) delegate('borderwidth', @frame) delegate('relief', @frame) + + # configure + configure(keys) if keys.size > 0 end private :initialize_composite diff --git a/ext/tk/sample/tkmultilistframe.rb b/ext/tk/sample/tkmultilistframe.rb new file mode 100644 index 0000000000..b67f8f8dac --- /dev/null +++ b/ext/tk/sample/tkmultilistframe.rb @@ -0,0 +1,912 @@ +# +# tkmultilistframe.rb : multiple listbox widget on scrollable frame +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' + +class TkMultiListFrame < TkListbox + include TkComposite + + # lbox_height : height of listboxes (pixel) + # title_info : array [ [,], ... ] + # keys : hash {