[fxruby-users] Adding dynamic widget

Bartosz Dziewoński matma.rex at gmail.com
Mon Sep 6 12:07:51 EDT 2010

2010/9/5 Robert Mitwicki <mitfik at gmail.com>:
> Hi,
> I looking for good solution for this functionality:
> I have application with one text field and one button widget
> When I click on the button I would like to add next text field, and so on ...

You connect a click event handler in regular way and then add widgets
the regular way as well. You just need to call "recalc" or "refresh"
(or both; check that in the docs or just try which works) on parent
widget (probably the main window) later.

Matma Rex - http://matma-rex.prv.pl/

More information about the fxruby-users mailing list