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

--VYhu2QMzSwuTeXJv84C
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV
ontent-Type" CONTENText/html; CHARSETF-8"> <META NAMEENERATOR" CONTENTtkHTML/1.1.5"> </HEAD> <BODY> Hi,<BR> I don't understand why this don't construct correctly the GUI : <PRE>class Switcher &lt; FXSwitcher &nbsp; def initialise(p) &nbsp;&nbsp;&nbsp; super(p, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) &nbsp;&nbsp;&nbsp; FXLabel.new(self, &quot;area 1&quot;, nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) &nbsp;&nbsp;&nbsp; FXLabel.new(self, &quot;area 2&quot;, nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) &nbsp; end end Switcher.new</PRE> My problem is that it's ok only if I put the two constructions of FXLabel after the construction of a Switcher like this: <PRE>switcher witcher.new FXLabel.new(switcher, &quot;area 1&quot;, nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) FXLabel.new(switcher, &quot;area 2&quot;, nil, LAYOUT_FILL_X|LAYOUT_FILL_Y)</PRE> Is there a problem in my order to construct widget ?<BR> <TABLE CELLSPACING" CELLPADDING" WIDTH00%"> <TR> <TD> -- <BR> Ludo &lt;<A HREFailto:coquelle / enib.fr">coquelle / enib.fr</A>&gt;<BR> ENIB/LI2 </TD> </TR> </TABLE> </BODY> </HTML> --VYhu2QMzSwuTeXJv84C--