when can publish the next version? i am waiting... _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
peng.chen wrote:> when can publish the next version? >Should be a couple of weeks. The big memory management fixes and overhaul of the event handling is done, there''s some new classes added, but there''s one or two crashers and other bugs I need to fix before release. Because it''s got more stable and doesn''t leak memory everywhere, I''m planning to release the next version as wxruby 1.9.0 - ie a beta release in advance of wxruby 2.0 alex
On 7/5/07, Alex Fenton <alex at pressure.to> wrote:> > peng.chen wrote: > > when can publish the next version? > > > Should be a couple of weeks. The big memory management fixes and > overhaul of the event handling is done, there''s some new classes added, > but there''s one or two crashers and other bugs I need to fix before > release. > > Because it''s got more stable and doesn''t leak memory everywhere, I''m > planning to release the next version as wxruby 1.9.0 - ie a beta release > in advance of wxruby 2.0 > > alex > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >I''m looking forward to grab the new gem :) Take your time... and keep up the good work!! fabio. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070705/8ff11a9d/attachment.html
Greate work,waiting , Can you fix treeCtrl.on_compare_items on next release? On 7/5/07, Fabio Petrucci <fabio.petrucci at gmail.com> wrote:> > On 7/5/07, Alex Fenton <alex at pressure.to> wrote: > > > > peng.chen wrote: > > > when can publish the next version? > > > > > Should be a couple of weeks. The big memory management fixes and > > overhaul of the event handling is done, there''s some new classes added, > > but there''s one or two crashers and other bugs I need to fix before > > release. > > > > Because it''s got more stable and doesn''t leak memory everywhere, I''m > > planning to release the next version as wxruby 1.9.0 - ie a beta release > > in advance of wxruby 2.0 > > > > alex > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > I''m looking forward to grab the new gem :) > > Take your time... and keep up the good work!! > > fabio. > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070706/fe7244e5/attachment.html
peng.chen wrote:> Can you fix treeCtrl.on_compare_items on next release? >I don''t believe this method is broken - it''s used successfully in samples/treectrl/treectrl.rb to do the reverse sort, and I''m finding it fine in my own code. See also: https://rubyforge.org/tracker/index.php?func=detail&aid=11708&group_id=35&atid=218 If you still think it needs fixing, please send in a non-working example thanks alex
on_compare_items is not broken? or lack something? run it : -------------------------------------------- require "wx" class MyTreeCtrl < Wx::TreeCtrl def initialize(parent) super parent, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TR_DEFAULT_STYLE | Wx::TR_EDIT_LABELS #|Wx::TR_MULTIPLE evt_right_down do |event| menu = Wx::Menu.new() sort_id=2001 sort=Wx::MenuItem.new(menu, sort_id,"sort") menu.append_item(sort) self.evt_menu(sort_id){ do_sort(false) } r_sort_id=2002 r_sort=Wx::MenuItem.new(menu, r_sort_id,"reverse sort") menu.append_item(r_sort) self.evt_menu(r_sort_id){ do_sort(true) } popup_menu(menu, Wx::Point.new(event.get_x(), event.get_y())) end end def do_sort(reverse_sort) return if get_selection<0 puts "sort:#{reverse_sort}:#{get_selection}" sort_children(get_selection) end def on_compare_items(item1,item2) puts "on_compare_items" #nothing output! if @reverse_sort # just exchange 1st and 2nd items return super(item2, item1) else return super(item1, item2) end end end class MyFrame < Wx::Frame def initialize(title) super(nil, -1, title) @tree=MyTreeCtrl.new(self) @root = @tree.add_root("The Root Item") 0.upto(10) do |x| child= @tree.append_item(@root, "Item " + x.to_s()) @tree.sort_children(child) end end end class MyApp < Wx::App def on_init $frame = MyFrame.new("Minimal wxRuby App") $frame.show return true end def on_fatal_exception puts("on_fatal_exception") end def on_exit puts("on_exit") return super end end a = MyApp.new a.main_loop() GC.start On 7/6/07, Alex Fenton <alex at pressure.to> wrote:> > peng.chen wrote: > > Can you fix treeCtrl.on_compare_items on next release? > > > I don''t believe this method is broken - it''s used successfully in > samples/treectrl/treectrl.rb to do the reverse sort, and I''m finding it > fine in my own code. > > See also: > > https://rubyforge.org/tracker/index.php?func=detail&aid=11708&group_id=35&atid=218 > > If you still think it needs fixing, please send in a non-working example > > thanks > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070709/71ffa0af/attachment-0001.html
samples\treectrl\treectrl.rb "sort" and "Reverse sort" menu can not work too -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070709/991a89f5/attachment.html
Hi peng I tried your sample on Windows and it''s not working for me (but it was on OS X). I wonder if this is because of the different inheritance chain or something. Unfortunately I''ve had my laptop nicked so can''t look into it further for a little while. But will hopefully fix for 0.41 a peng.chen wrote:> on_compare_items is not broken? > or lack something? > > run it :
HI ALEX Thanks, Expecting very much that, next time i''ll report bug I will add the Os system description On 7/10/07, Alex Fenton <alex at pressure.to> wrote:> > Hi peng > > I tried your sample on Windows and it''s not working for me (but it was > on OS X). I wonder if this is because of the different inheritance chain > or something. > > Unfortunately I''ve had my laptop nicked so can''t look into it further > for a little while. But will hopefully fix for 0.41 > > a > > peng.chen wrote: > > on_compare_items is not broken? > > or lack something? > > > > run it : > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070711/78044b60/attachment.html