[fxruby-users] Creating widgets -- automatigically?

Tobias Herzke fxrbu1 at gi2.herzkes.de
Fri Jun 23 09:15:12 EDT 2006

Jeroen van der Zijp wrote:
>>"FXDCWindow::drawIcon: illegal icon specified."
> Its in the FAQ: http://www.fox-toolkit.org/faq.html#ILLEGALICON.

Thats a good explanation, thanks for the pointer. I would not have
thought of the subclassing problem.

How about automatic creation? Methods that need "created" widgets could
check if their parameters are already created, and if they are not, call
create on them.

Fox C++ library might not be the right place to do this. After all,
you'd expect C++ interfaces to have (and enforce) very strict rules. I
believe it would fit more into the FXRuby layer, and would probably be
very easy to achieve with a nice metaprogramming hack.

What do you think?

More information about the fxruby-users mailing list