Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: wxWidgets Events question

by greenhorn_007 (Acolyte)
on May 28, 2014 at 08:47 UTC ( [id://1087618]=note: print w/replies, xml ) Need Help??


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

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?

Replies are listed 'Best First'.
Re^5: wxWidgets Events question
by Anonymous Monk on May 28, 2014 at 09:26 UTC

      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] ); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1087618]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found