Hello, this is my code (in a frame''s constructor): self.evt_auinotebook_page_close(@notebook) { puts "page closed!" } self.evt_auinotebook_end_drag(@notebook) { puts "page moved away!" } while the first works as expected, the second does not work at all. the block is never called, when a tab is moved from the target-notebook to another one. is this a bug? if yes, can this be fixed? if want a notebook that adds to itself an empty page if there are no more other tabs (so that it stays usable). therefore i must somehow react on the user closing tabs. is there perhaps another way to work around this? Greetings, Niklas _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Niklas Baumstark wrote:> Hello, > > this is my code (in a frame''s constructor): > > self.evt_auinotebook_page_close(@notebook) { puts "page closed!" } > self.evt_auinotebook_end_drag(@notebook) { puts "page moved away!" } > > while the first works as expected, the second does not work at all. the block is never called, when a tab is moved from the target-notebook to another one.I''m a bit puzzled by this too. Unfortunately I can''t find documentation in wxWidgets of exactly when these events should occur. However, your query prompted me to look again at the auibook header in Wx. It seems that since version 2.8.5, several new AUI events were added, including EVT_AUINOTEBOOK_DRAG_DONE. I''ve added support for these events to wxRuby (SVN:1773), and this drag_done event does exactly what you''re looking for. So you should be able to resolve this with the next wxRuby release (soon...) cheers alex
Hello, Alex Fenton <alex at pressure.to> wrote:> Niklas Baumstark wrote: > > Hello, > > > > this is my code (in a frame''s constructor): > > > > self.evt_auinotebook_page_close(@notebook) { puts "page closed!" } > > self.evt_auinotebook_end_drag(@notebook) { puts "page moved away!" } > > > > while the first works as expected, the second does not work at all. the block is never called, when a tab is moved from the target-notebook to another one. > I''m a bit puzzled by this too. Unfortunately I can''t find documentation > in wxWidgets of exactly when these events should occur. > > However, your query prompted me to look again at the auibook header in > Wx. It seems that since version 2.8.5, several new AUI events were > added, including EVT_AUINOTEBOOK_DRAG_DONE. I''ve added support for these > events to wxRuby (SVN:1773), and this drag_done event does exactly what > you''re looking for. So you should be able to resolve this with the next > wxRuby release (soon...)thank you very much! by the way, when is the final version of wxruby going to be released? i love it :) Greetings, Niklas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080819/b8b16294/attachment.bin>
Niklas Baumstark wrote:> Alex Fenton <alex at pressure.to> wrote: > >> I''ve added support for these >> events to wxRuby (SVN:1773), and this drag_done event does exactly what >> you''re looking for. So you should be able to resolve this with the next >> wxRuby release (soon...) >> > > thank you very much! by the way, when is the final version of wxruby going to be released? i love it :)That''s kind of you to say so... as for 2.0 it''s up for discussion on the dev- mailing list. Basically I''d like to fix all the bugs that are fixable within wxRuby (some are wxWidgets problems): http://rubyforge.org/tracker/?atid=218&group_id=35&func=browse I would like the next release to be the final, but there''s a few instabilities in 1.9.7 so it might be better for us to get another beta out sooner and then chip away at the remaining tricky bugs (GTK clipboard ... ;) cheers alex
Hello, Alex Fenton <alex at pressure.to> wrote:> That''s kind of you to say so... as for 2.0 it''s up for discussion on the > dev- mailing list. Basically I''d like to fix all the bugs that are > fixable within wxRuby (some are wxWidgets problems): > > http://rubyforge.org/tracker/?atid=218&group_id=35&func=browse > > I would like the next release to be the final, but there''s a few > instabilities in 1.9.7 so it might be better for us to get another beta > out sooner and then chip away at the remaining tricky bugs (GTK > clipboard ... ;)ok I''m in no hurry :) Greetings, Niklas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080819/5f1d98ed/attachment.bin>