From: Mattia B. <mb...@ds...> - 2002-10-29 11:11:29
|
On Tue, 29 Oct 2002, Jouke Visser wrote: >>>2. I was playing with Wx::EvtHandler and the Disconnect method only >>>allowed me to use the second form, using the 'lastid' parameter. I have >>>no clue what I should fill in there, and using the default -1 didn't >>>work. I think the first form of Disconnect ($handler->Disconnect(id, >>>eventtype)) would be much easier to use. Could you allow this? >>> >> Using -1 should work (test case?). If you added the event handler >>using some EVT_FOO, you can use EVT_FOO( ..., undef ) to disconnect it >>(if it does not work, it is a bug). (this is from 0.12). >> >Well, I've eventually worked around it (the sub that was my event >handler now checks for a flag and calls other subs depending on the >flag), but I'll try again and let you know. I'm sure that EVT_FOO(..., >sub {}) (empty sub) at least *didn't* work (which I tried), because it >kept calling the original sub EVT_FOO was defined with. Yes, but sub {} != undef... [1] >>>5. One very important feature request for me personally would be to wrap >>>Wx::MemoryFSHandler. In the wxPerl 0.12 documentation you state that >>>this class is not implemented, however from the demo.pl and from my own >>>experience I know that Wx::ZipFSHandler and Wx::InternetFSHanderl *are* >>>implemented. I presume the documentation is right and that the >>>MemoryFSHandler is *not* currently implemented, which is something I >>>can't see why. >>> >>Well, for no particular reason. Again, will not be in 0.12. >> >Again, understandable that it won't be in 0.12, but is there a chance >I'll see it in 0.13? I don't know (really). The plan for 0.13 is to "just" change the build system to be able to build external XS modules (Wx::ActiveX, ATM, more will probably follow later). Given that my hacking time is now limited (university started again...), I will see what I can do. I think wxMemoryFSH and wxWave can go in (they are small classes), though. >If I were more into XS stuff, I'd certainly submit patches, but that's >something I've never done before and I presume that if I'd submit >patches, everyone would like them to be good, not beginners-stuff... > >Maybe that's something for my personal to-do list...getting more into XS... Regards Mattia |