Finish Button disappears on last panel of FXWizard

View: New views
2 Messages — Rating Filter:   Alert me  

Finish Button disappears on last panel of FXWizard

by patrick-194 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 }

app.create
wiz.show(PLACEMENT_SCREEN)
app.run

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...



_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Finish Button disappears on last panel of FXWizard

by dglnz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

dave.

--- On Tue, 29/9/09, patrick@... <patrick@...> wrote:

From: patrick@... <patrick@...>
Subject: [fxruby-users] Finish Button disappears on last panel of FXWizard
To: fxruby-users@...
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 }

app.create
wiz.show(PLACEMENT_SCREEN)
app.run

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@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Hungry? Try some spicy marinated chicken fillets for dinner tonight, courtesy of Yahoo!Xtra Food.
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users