[wxruby-users] evt_auinotebook_end_drag ?

Alex Fenton alex at pressure.to
Tue Aug 19 08:39:11 EDT 2008


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


More information about the wxruby-users mailing list