[fxruby-users] Adding buttons 'on the run' to a FXDialogBox

Damián M. González gonzalezdamianm at hotmail.com
Sat Jun 1 15:52:52 UTC 2013

 I've seen what the problem is: the dialog doesn't get resized automatically, so the buttons were created but can't see them because the dialog remain the same size as always. The solution was resize the dialog manually, just give it 40 pixels more of height. I don't know if it is desired or no, if the dialog should be automatically resized to contain all the widgets, includes the new created or no. Jeroen knows.
From: gonzalezdamianm at hotmail.com
To: foxgui-users at lists.sourceforge.net; fxruby-users at rubyforge.org
Date: Sat, 1 Jun 2013 11:09:55 -0300
Subject: [fxruby-users] Adding buttons 'on the run' to a FXDialogBox

  Hello fellows, I'm working with a FXDialogBox, it have from the beggining a button, if you press that button 2 more buttons should be created in the bottom of the dialog, the problem is that I can't make it appear, I've tried many things: @dialog.create, @dialog.recalc, @dialog.layout, @dialog.update, @dialog.repaint, @dialgo.restore, @dialog.forceRefresh, nothink work. Also I've directly called those method to the buttons and his layout manager, nothing works. What I've noted is that a pixel appear in the upper-right corner of the dialog(inside it), don't know what's happening. Is there any advice that you can give me to solve this? Thanks. 		 	   		  

fxruby-users mailing list
fxruby-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20130601/a683c27d/attachment.html>

More information about the fxruby-users mailing list