[wxruby-users] Wx::Font.new fails in a Runtime Error
Кирилл Лиходедов
kirill.likhodedov at gmail.com
Tue Oct 14 03:28:16 EDT 2008
Andreas, you definitely have much more descriptive messages.It looks like a
problem of Windows version WxRuby, because Ruby itself doesn't have these
problems.
Does anybody know if anything can be done with it, maybe in future releases?
2008/10/13 Andreas Garnæs <lists at ruby-forum.com>
> Кирилл Лиходедов wrote:
> > Oops, sorry, that should be
> > text.set_default_style(Wx::TextAttr.new(Wx::BLACK,
> > Wx::WHITE, font))
> >
> > OK, I understand, it works now, thanks for the hint!
> >
> > But the main problem still exists: it is very hard to determine when you
> > use
> > wrong or incomplete method signature, when it just silently fails.Is it
> > some
> > configuration problem of mine or it is WxRuby feature?
> >
> > 2008/10/13 Кирилл Лиходедов <kirill.likhodedov at gmail.com>
>
> I guess you just have to read the documentation very carefully. I get
> significantly better error messages on Ubuntu, however, eg:
>
> > Wx::Font.new(20)
> ArgumentError: Wrong arguments for overloaded method 'wxFont.new'.
> Possible C/C++ prototypes are:
> wxFont.new()
> wxFont.new(int pointSize, int family, int style, int weight, bool
> const underline, wxString const &faceName, wxFontEncoding encoding)
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20081014/0cbe4489/attachment.html>
More information about the wxruby-users
mailing list