I’m working on a dialog box for a SketchUp plug-in using wxSU with
controls that accept numerical input only and need a little help with
After going through the docs for wxRuby and wxWidgets I tried the
class SpurGearDialog < Wx::Dialog
#set validators val = Wx::TextValidator.new(Wx::FILTER_INCLUDE_CHAR_LIST,
With @tc_gTeeth being the text control, @gear_teeth the instance
variable that I
want the validator to save data to and @arr_int is my list of acceptable
When I attempt to open the dialog box, SketchUp crashes at the third
found I can only get the validator to work by removing @gear_teeth when
the validator. However, if I do this I do not see how the validator can
data between the control and my dialog class.
I’m a Ruby newbie so the problem might be my code but if not, is there a
get data from the control using validators in wxRuby or is data transfer
not supported at this time?