Krisztián Káldi
2004-Nov-15 03:43 UTC
[fxruby-users] Creating widgets after initialize of the main window
Hello there
I have just got into learning FXRuby, and have a problem I can not solve - last
night at #ruby-lang could not help either. I''m sure you can easily
solve it :)
Unfortunately I don''t have the actual source code here, but the point
is the following:
def ininialize(app)
...
@frame = new FXVerticalFrame.new self, ...
@btn1 = new FXButton @frame, ...
@btn2 = new FXButton @frame, ...
@btn1.connect(SEL_COMMAND) do |a,b,c|
@btn3 = new FXButton @frame, ...
puts "i''m here"
end
...
end
My problem: @btn1 and @btn2 buttons are created/shown well, but the @btn3 (which
I create in the select event handler of @btn1) is not shown at all, but the
execution gets there ("i''m there" is printed).
I tried the following - without success:
- creating FXListBoxs instead of FXbuttons
- calling @btn3.create explicitly
- playing around with update, repaint, forceRefresh, ...
Thank you in advance.
Regards,
Krisztian Kaldi
lyle@knology.net
2004-Nov-15 10:52 UTC
[fxruby-users] Creating widgets after initialize of the main window
On Mon, 15 Nov 2004 09:43:56 +0100, Kriszti?n K?ldi <krisztian.kaldi@triton.hu> wrote :> My problem: @btn1 and @btn2 buttons are created/shown well, but the @btn3(which I create in the select event handler of @btn1) is not shown at all, but the execution gets there ("i''m there" is printed).> > I tried the following - without success: > - creating FXListBoxs instead of FXbuttons > - calling @btn3.create explicitly > - playing around with update, repaint, forceRefresh, ...Calling @btn3.create should have done the trick. If you have a short example program (not a code fragment) that demonstrates the problem, we can take a look to see what might be going on.