Re: xs for object returned by value

2009-08-10 Thread Doubi
Doubiman wrote: I've got a function in a wx object that I'm writing XS for that returns a another object, which doesn't inherit from any wx classes, by value (not a pointer to object), meaning the O_WXOBJECT, O_NON_WXOBJECT, T_PTROBJ and T_PTRREF typemaps give the error "cannot convert 'wxWebV

Re: Distinguishing between event types

2009-08-10 Thread Doubi
Hi Steve, Steve Cookson wrote: The specific event I am interested in is tabbing out of a field to trigger validation (ie a table lookup), however, this uses wxEVT_KILL_FOCUS. wxEVT_KILL_FOCUS only passes the id of the control that was clicked and event. It is also triggered when you do alt-tab

Re: Distinguishing between event types

2009-08-10 Thread Doubi
Hi Steve, Steve Cookson wrote: I'm comfortable now with how to identify which event called the event-handler, but I'm still struggling to understand how to identify the variables involved when $self is not passed as a parameter. Previously you wrote: OK I'm making some progress. The event pa

Re: Ithreads [was: Re: Documentation?]

2009-08-08 Thread Doubi
Mattia Barbon wrote: [...] at my previous job if the task called for threads, Python was used, and Perl was not considered an option (and, frankly, for very good reasons): - memory occupation - creating new threads is slow - because some key modules are not thread-safe (DBI for example, disc

Re: wxWidgets DLLs

2009-08-07 Thread Doubi
wxperl.d...@gmail.com wrote: Again? I haven't run it once yet :-) I am working my way through Mattia's Wx module docs, which (as he pointed out himself) do not include anything about Alien::wxWidgets. I thought I would install Wx and then afterwards install Alien::wxWidgets -- or is that bac

Re: wxWidgets DLLs

2009-08-07 Thread Doubi
Hi again, wxperl.d...@gmail.com wrote: Next issue: those steps created about a dozen DLL files in the lib\gcc_dll directory. Where should those files be installed, and how? Is it sufficient (and is it a good idea) to simply copy those files to the C:\WINDOWS directory? You shouldn't have to

Re: Trouble building wxWidgets for Strawberry Perl

2009-08-07 Thread Doubi
Hi Eric, wxperl.d...@gmail.com wrote: The first part, building in \build\msw, worked fine. The second part, not so much. If you go to \contrib\src\stc, there is no such file as makefile.gcc there. There is a Makefile.in there, but I don't know how to convert that into a real makefile under Wi

Re: wxPerl wiki

2009-08-06 Thread Doubi
Steve Cookson wrote: Sorry to hear about the Wiki, I hope enough time has passed for everyone to grieve, so I'm going to put a less funereal spin on the front page. Good for you! Is http://wxperl.pvoice.org/ the main wxPerl support site, or do people use sourceforge more? As Steffen & Eric alre

Re: R: Unmapped types and %name{

2009-08-05 Thread Doubi
Hi Mattia, mattia.bar...@libero.it wrote: In the meantime I wondered if there was a reason const wxString hadn't been implemented before? Basically, it's not needed: if you are writing XS, just use 'wxString' in the function declaration; *tries it*... !? Cool, that's great then. I feel li

Re: Unmapped types and %name{

2009-08-05 Thread Doubi
Hi Steffen, Steffen Mueller wrote: I grepped and found it in some of the main Wx package .xs files, but always inside a structure like " %name{Wx::TextCtrlBase} class wxTextCtrlBase {... " and I don't recognise that syntax /at all/. The Wx package features strongly when doing a Google Code Sea

Unmapped types and %name{

2009-08-04 Thread Doubi
Hi all, I'm implementing a function (LoadURL) which takes a single argument of const wxString&. wxString is implemented in the main Wx typemap, but not a const version. If I try neglecting the const in my .xs file I'm told: WebKit.c: In function ‘void XS_Wx__WebView_LoadURL(PerlInterpreter*,

Re: Documentation?

2009-08-02 Thread Doubi
Looking for info on creating new wxPerl modules in the list archives, I was amused to find this thread from 2007: http://perl.markmail.org/message/mmqca7tlzvverg4v Interestingly, it intermittently derails into discussion of threading issues too :-p More interesting is a comment towards the e

Re: wxPerl structure questions

2009-07-31 Thread Doubi
I wrote: - I'm writing wxPerl wrappers for a new wx component. How do I make use of the installed Wx typemaps and the wxapi.h? The latter I assume is just a matter of making sure make can find it, but what's the best way to do this in a cross-platform way? Is there something I can pass to Make

wxPerl structure questions

2009-07-31 Thread Doubi
Steffen Mueller wrote: I'm a terrible writer, but I'll try to answer any questions you come up with. I'll take you up on that :-) - Why does every example of an XS file everywhere begin with #include "EXTERN.h" #include "perl.h" #include "XSUB.h" but all the .xs files in the Wx package begin

Re: Documentation?

2009-07-31 Thread Doubi
Robin Cragg (Solutios Ltd) wrote: Someone who is completely new to wxPerl and does not know C++ needs something like what O'Reilly have for Perl/Tk [...] In contrast, someone who has been using wxPerl longer just needs a quick-and-easy API reference (or even a cookbook?). This is a very good

Re: Documentation?

2009-07-30 Thread Doubi
Dodger wrote: [...] That's f$*%ked up! [...] What, are you writing a book on WxPerl and don't want any free competition or something? [...] Looking up the C++ apis and going with a general knowledge that "It's pretty much the same, even if I don't quite understand C++ anyway" is crap. I enc

Re: Documentation?

2009-07-30 Thread Doubi
James McDonald wrote:I'd be most interested I would pay over $100 AUD for a Oreilly style book on wxPerl. Throwdown! That's the kind of talk that gets busy people more interested ;-) While we're making wishlists: - I don't understand how a wxPerl application initializes and would love to.

Re: Documentation?

2009-07-30 Thread Doubi
Octavian Rasnita wrote: I am convinced that a good Perl documentation would be helpful, but too bad that those who know well WxPerl don't have the necessary time and motivation. the busiest It would indeed be nice if those in the know could just Data::Dump their collective knowledge into a nice

Re: Documentation?

2009-07-29 Thread Doubi
Hi Eric, Roode, Eric wrote: As I'm learning, I'd like to work on improving the documentation. [...] If there is a documentation coordinator, I'd like to work with that person. If not... well, would you like one? [...] Hopefully, I can write stuff that will be helpful both to newcomers and t