Hi,
Actually this is needed as I bind some widgets (c++) to wxLua and they have used such array using the wxWidgets macro; and I would like to access it as well.
For typical example is the wxArrayTreeItemIds is defined in .i file but no constructor as well then some third party class used this for the return value and it is really handy when you want to control the tree; the wxTreeCtrl understand it rather than the lua table we construct.
You are right that most of uses is realy needed to have constructor (you get the return value from the c++ method ) but sometimes ...
Of course for all others ; better off using {} :-)
Cheers,
BTW, the class reference you point is the current CVS version right? I still _have_ to use the released version though because of some other dependency to lua 5.0 ; 2.6.2.0; which is still very good to me.
Thanks.
Cheers
John Labenski <[EMAIL PROTECTED]> wrote:
On 5/25/06, Steve Kieu <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am looking around and not yet find any;
>
> Look at data.i; it has mapping for wxArrayInt, wxArrayString. With
> wxArrayString it has constructor so I can use it normally. But not for
> ArrayInt ; Also many others does not have constructor as well;
I guess the thought was that normally you'd just use a lua table as an
int array. I've added constructors for wxArrayInt so it should work
now.
You can check to see all the wxLua classes and their member functions here.
http://wxlua.sourceforge.net/docs/wxluaref.html
-John Labenski
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users
[EMAIL PROTECTED]>
S.KIEU
The LOST Ninja blog: Exclusive clues, clips and gossip.