[fxruby-users] Finish Button disappears on last panel of FXWizard

dave L dglnz at yahoo.com
Tue Sep 29 03:29:47 EDT 2009

Hi still very new but...

this line here one = FXText.new(wiz.container, :opts => LAYOUT_FILL)

to me says fill the window so wouldn't your button disappear?

I do stand to be corrected by my betters (ps i use foxGUIb for the GUI placement so maybe ignore my posting here.


--- On Tue, 29/9/09, patrick at patrickjones.ca <patrick at patrickjones.ca> wrote:

From: patrick at patrickjones.ca <patrick at patrickjones.ca>
Subject: [fxruby-users] Finish Button disappears on last panel of FXWizard
To: fxruby-users at rubyforge.org
Received: Tuesday, 29 September, 2009, 12:00 PM

Thanks Lyle for helping me with my other question.
Now I have a new one because it runs counter to what I think the docs are telling me.
Here is the code...
require 'rubygems'
require 'fox16'
include Fox

app = FXApp.new
wiz = FXWizard.new(app, 'wiz', nil, :width => 640, :height => 480)

wiz.cancelButton.connect(SEL_COMMAND) { exit }

one = FXText.new(wiz.container, :opts => LAYOUT_FILL)
one.text = "Some useful information here"
two = FXButton.new(wiz.container, 'a big ole button', :opts => FRAME_RAISED|LAYOUT_FILL)

wiz.finishButton.connect(SEL_COMMAND) { exit }

It seems that when I add attach a command to the wiz.finishButton, when the time comes for it to appear (on the last panel) it disappears...

-----Inline Attachment Follows-----

fxruby-users mailing list
fxruby-users at rubyforge.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20090929/074de6c4/attachment.html>

More information about the fxruby-users mailing list