I can make these changes tonight, but if somebody else could do it that
would be swell too.
1) Validators currently do not work for the dumbest reason ever... the
"Clone" method in wxRbValidator needs to be changed to:
virtual wxObject* Clone() const;
while in there, I think the validator methods need to be renamed to
proper ''wxruby'' things ("validate" instead of
"Validate").
2) The GetWindow method of WxValidator needs to be changed to:
VALUE
WxValidator::GetWindow(VALUE self)
{
wxRbValidator *ptr;
Data_Get_Struct(self, wxRbValidator, ptr);
return WxRbTypeTable::ConvertCppObject(ptr->GetWindow());
}
3) The following line needs to be added into dynamiccast.cpp Init method:
WXRB_ADD_TYPE_CONV(WxStaticText,"wxStaticText");
also, the line
#include "statictext.h"
needs to be added to the top.
Like I said, I can make a diff of these tonight. I''m not sure if we
want
to make it part of 0.2 or wait to 0.3. It''s pretty obvious that
validators have never worked from looking at the test code
(etc/test21.rb is the only test that uses it, and the Validator code has
obviously not been changed over from C++).
Nick