On Saturday, December 22, 2012 5:52:57 PM UTC-2, Steve_Bz wrote:

Hi Guys,
As suggested I tried EVT_AUINOTEBOOK_DRAG_DONE, but it needed to be
wrapped.  So I opened:
~/wxPerl/ext/aui/AUI.xs
and copied one of the lines to create:
EVT( EVT_AUINOTEBOOK_DRAG_DONE, 3, wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE )



1) Just to be clear, here is the actual change:

static wxPliEventDescription evts[] =
{
    SEVT( EVT_AUI_PANE_BUTTON, 2 )
    SEVT( EVT_AUI_PANE_CLOSE, 2 )
    SEVT( EVT_AUI_PANE_MAXIMIZE, 2 )
    SEVT( EVT_AUI_PANE_RESTORE, 2 )
    SEVT( EVT_AUI_RENDER, 2 )
    EVT( EVT_AUINOTEBOOK_PAGE_CLOSE, 3,
wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE )
    EVT( EVT_AUINOTEBOOK_PAGE_CHANGED, 3,
wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED )
    EVT( EVT_AUINOTEBOOK_PAGE_CHANGING, 3,
wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING )
    EVT( EVT_AUINOTEBOOK_BUTTON, 3, wxEVT_COMMAND_AUINOTEBOOK_BUTTON )
    EVT( EVT_AUINOTEBOOK_BEGIN_DRAG, 3,
wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG )
    EVT( EVT_AUINOTEBOOK_END_DRAG, 3, wxEVT_COMMAND_AUINOTEBOOK_END_DRAG )
    // Wrap extra event.
    EVT( EVT_AUINOTEBOOK_DRAG_DONE, 3, wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE )
    EVT( EVT_AUINOTEBOOK_DRAG_MOTION, 3,
wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION )
    EVT( EVT_AUINOTEBOOK_ALLOW_DND, 3, wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND )
    { 0, 0, 0 }
};

2) Maybe there was a problem with the compile.  What would I expect to see
if had compiled?  Where could I see the final wrapped EVT_?  If I
single-stepped through the code where could I expect to see a change?

The code crashes at the line Wx::Event::EVT_AUINOTEBOOK_DRAG_DONE, would it
be possible to mimic the event in the way Octavian did for his
wxTEXT_ATTR_SUBSCRIPT?

Maybe some sort of {connect .....}?

What do you think?

Regards

Steve

Reply via email to