On 6/2/07, Andre <[EMAIL PROTECTED]> wrote:
> John Labenski <[EMAIL PROTECTED]> writes:
>
> local findType = wx.wxComboBox(toolBar, ID_ELEMENT_TYPE, '',
> wx.wxDefaultPosition, wx.wxDefaultSize, {}, wx.wxCB_READONLY)
>
> finType:SetSelection(0) does not work
>
> error:
> expected a number for parameter 3, but got 'no value'
Oh, this is a little more serious. Previously the function
wxComboBox::SetSelection( int to, int from) was called SetMark (for
selecting text in the combobox), but since I removed the %rename it
hides the base class function SetSelection(int n) whis why you got an
error on param 3 (where it's +1 since param 1 is the "self").
I've made function calls check the base class, wxControlWithItems in
this case, to see if it has a function with the same name. The check
is done only the first time a function is called with the result
cached by storing a pointer to base class method for faster lookup.
> Andre
>
> PS: The new binding is much better then the old one.
> Thanks for this significant improvement.
Thanks. I really appreciate your input.
John Labenski
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users