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

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

Replies are listed 'Best First'.
Re^3: wxWidgets Events question
by Anonymous Monk on May 28, 2014 at 07:58 UTC

    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

      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?