[fxruby-users] dynamically changing dialogs

Jannis Pohlmann info at sten-net.de
Sat Jan 7 10:17:21 EST 2006

Forrest Chang schrieb:
> Hi All:
>   I want to dynamically change a subclass of
> FXDialogBox after it'd been displayed.  I did some
> googling and found that widget.create solves the
> problem on FXMainWindow, but does not seem to do the
> same with an FXDialogBox.    I have a code sample that
> creats a main window with a button to display a
> simplified dialog which adds 2 "entries" to itself in
> initialize() and gives a button to add additional
> entries.  The 2 buttons added in intialize work, but I
> can't see them added later.
>   Any ideas? TIA

Well, you always have to call recalc() on the parent window or the newly
created widget in order to have it displayed.


More information about the fxruby-users mailing list