View Full Version : visibility control of a text field programmatically
jackimullen
11-10-2003, 09:44 AM
I am attempting to get text fields to have visiblity or not depending on attributes set by class creation. I cannot get the visible field to respond to either a programmatic selection such as visible="parent.ATTRIBUTE==true?true:false" or to simple assignments like visible="parent.ATTRIBUTE"
thanks.. jack
antun
11-10-2003, 11:15 AM
Here's what I did:
<canvas debug="true">
<class name="foo" bgcolor="red" width="200" height="20">
<attribute name="isviz" value="false" />
<text name="textField"
visible="${classroot.isviz==true?true:false}">See here
</text>
</class>
<simplelayout axis="y" spacing="20" />
<foo name="a" />
<foo name="b" isviz="true"/>
</canvas>
This:
visible="parent.ATTRIBUTE"
... is old syntax. You should use the newer ${} system, which is documented here:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=263
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.