From: John L. <jla...@gm...> - 2007-06-05 19:55:45
|
On 6/2/07, Andre <ar...@ki...> wrote: > John Labenski <jlabenski@...> 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 |