in reply to Re^2: wxWidgets Events question
in thread wxWidgets Events question

Ok, how can I do something after a specific event handler is done?

Is there an event type that is documented to fire after that specific event? Is it supported by wxPerl? For the installed/compiled-against version of wxWidgets?

If there is, you simply register another event handler :)

If there is not, then whatever you needed to do, you should have done from within your original event handler, perhaps at the very end of it :)

OTOH , you can update display from within event handlers ... and from outside of them

Replies are listed 'Best First'.
Re^4: wxWidgets Events question
by greenhorn_007 (Acolyte) on May 28, 2014 at 08:47 UTC

    Is there an event type that is documented to fire after that specific event? Is it supported by wxPerl? For the installed/compiled-against version of wxWidgets?

    Well I'm not sure. Here I have the table with the possible event handlers. http://docs.wxwidgets.org/2.8.12/wx_wxwizardevent.html#wxwizardevent I think EVT_WIZARD_PAGE_CHANGED and EVT_WIZARD_PAGE_SHOWN follow each other. I wanted to use the second, but it looks like it's not defined. Where can I check if I really have it?

    If there is not, then whatever you needed to do, you should have done from within your original event handler, perhaps at the very end of it :)

    So if I can't get my hands on EVT_WIZARD_PAGE_SHOWN -> should do it in EVT_WIZARD_PAGE_CHANGED. The problem - the content of the page is not yet shown, but I need it to be on the screen.

    OTOH , you can update display from within event handlers ... and from outside of them

    How can I do that?

        Well, bind-ing/Connect-ing worked , the callbacks are called

        sub Wx::Event::EVT_WIZARD_BEFORE_PAGE_CHANGED ($$$) { $_[0]->Connect( +$_[1], -1, 10235, $_[2] ); } sub Wx::Event::EVT_WIZARD_FINISHED ($$$) { $_[0]->Connect( $_[1], -1, +10237, $_[2] ); } sub Wx::Event::EVT_WIZARD_PAGE_SHOWN ($$$) { $_[0]->Connect( $_[1], -1 +, 10239, $_[2] ); }