From: Ludo Date: 2002-11-28T19:11:13+09:00 Subject: use of FXSwitcher ? --correct! (sorry) --=-vVYhu2QMzSwuTeXJv84C Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, I don't understand why this don't construct correctly the GUI : class Switcher < FXSwitcher def initialise(p) super(p, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) FXLabel.new(self, "area 1", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) FXLabel.new(self, "area 2", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) end end Switcher.new My problem is that it's ok only if I put the two constructions of FXLabel after the construction of a Switcher like this: switcher = Switcher.new FXLabel.new(switcher, "area 1", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) FXLabel.new(switcher, "area 2", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) Is there a problem in my order to construct widget ? -- Ludo ENIB/LI2 --=-vVYhu2QMzSwuTeXJv84C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi,
I don't understand why this don't construct correctly the GUI :
class Switcher < FXSwitcher
  def initialise(p)
    super(p, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0)
    FXLabel.new(self, "area 1", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y)
    FXLabel.new(self, "area 2", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y)
  end
end
Switcher.new
My problem is that it's ok only if I put the two constructions of FXLabel after the construction of a Switcher like this:
switcher = Switcher.new
FXLabel.new(switcher, "area 1", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y)
FXLabel.new(switcher, "area 2", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y)
Is there a problem in my order to construct widget ?
--
Ludo <coquelle@enib.fr>
ENIB/LI2
--=-vVYhu2QMzSwuTeXJv84C--