-- 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" CONTENT ext/html; CHARSET F-8">
<META NAME ENERATOR" CONTENT tkHTML/1.1.5">
</HEAD>
<BODY>
Hi,<BR>
I don't understand why this don't construct correctly the GUI :
<PRE>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</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, "area 1", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y)
FXLabel.new(switcher, "area 2", 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 <<A HREF ailto:coquelle / enib.fr">coquelle / enib.fr</A>><BR>
ENIB/LI2
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
-- VYhu2QMzSwuTeXJv84C--