[wxruby-users] wxruby2::DefaultValidator not defined

John Griffiths lists at ruby-forum.com
Wed Jan 14 07:24:48 EST 2009


Hi, trying to display a bitmap button, don't have a validator at the
moment so using wxruby's defaultvalidator method,

    b = Wx::BitmapButton.new(self, 10, 'assets/images_only_btn.jpg',
Wx::Point.new(170,210), Wx::Size.new(120,80), 0, Wx::DefaultValidator,
'Import Data')

should work but just returns me with..

"uninitialized constant Wxruby2::DefaultValidator (NameError)"

any ideas?

can't find any examples anywhere, bit stuck
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list