From: Mattia B. <mb...@ds...> - 2003-03-28 19:09:22
|
On Fri, 28 Mar 2003 01:55:20 -0800 (PST) DH <cra...@ya...> wrote: > So if I do a > EVT_DIALUP_CONNECTED( Wx::EvtHandler->new(), sub { warn "# yes, we're > a connected " } ); > EVT_DIALUP_DISCONNECTED( Wx::EvtHandler->new(), sub { warn "# yes, > we're a DIS-connected " } ); > > it should work now? ( I tried testing, but it didn't work) Next time it will work better if I think before typing... after some more source digging: sub EVT_DIALUP_CONNECTED($) { Wx::wxTheApp()->Connect( -1, -1, &Wx::wxEVT_DIALUP_CONNECTED, $_[0] ) } should work. The problem being that wxDialUpManager always sends its events to the application object (which is a Wx::EvtHandler). Regards Mattia |