zanshin
09-16-2009, 04:39 PM
Lets say I have several HBOX components that hold a Label / Spacer / and 2 TextInput fields. However I don't know whether I will need to display 1 or all the HBOX components. If I use visible=false, I get unwanted spaces between some of the HBOX's. How can I have a component not display and not take up space on my screen.
sample code below (three HBox's as described above):
<mx:HBox width="100%">
<ddd:SmartDeskTextArea height="24"
text="Elective Deferrals:" />
<mx:Spacer width="140" height="1"/>
<ddd:SmartDeskNumberInput width="100"/>
<mx:Spacer width="85" height="1"/>
<ddd:SmartDeskNumberInput width="100" />
</mx:HBox>
<mx:HBox width="100%">
<ddd:SmartDeskTextArea height="24"
text="Contributions:" />
<mx:Spacer width="140" height="1"/>
<ddd:SmartDeskNumberInput width="100"/>
<mx:Spacer width="85" height="1"/>
<ddd:SmartDeskNumberInput width="100" />
</mx:HBox>
<mx:HBox width="100%">
<ddd:SmartDeskTextArea height="24"
text="Dividends:" />
<mx:Spacer width="140" height="1"/>
<ddd:SmartDeskNumberInput width="100"/>
<mx:Spacer width="85" height="1"/>
<ddd:SmartDeskNumberInput width="100" />
</mx:HBox>
sample code below (three HBox's as described above):
<mx:HBox width="100%">
<ddd:SmartDeskTextArea height="24"
text="Elective Deferrals:" />
<mx:Spacer width="140" height="1"/>
<ddd:SmartDeskNumberInput width="100"/>
<mx:Spacer width="85" height="1"/>
<ddd:SmartDeskNumberInput width="100" />
</mx:HBox>
<mx:HBox width="100%">
<ddd:SmartDeskTextArea height="24"
text="Contributions:" />
<mx:Spacer width="140" height="1"/>
<ddd:SmartDeskNumberInput width="100"/>
<mx:Spacer width="85" height="1"/>
<ddd:SmartDeskNumberInput width="100" />
</mx:HBox>
<mx:HBox width="100%">
<ddd:SmartDeskTextArea height="24"
text="Dividends:" />
<mx:Spacer width="140" height="1"/>
<ddd:SmartDeskNumberInput width="100"/>
<mx:Spacer width="85" height="1"/>
<ddd:SmartDeskNumberInput width="100" />
</mx:HBox>