Actually, FormItem does have a direction attribute, which Greg is properly using. The problem is a lack of with attributes on the Form and form item tags. Try this instead.

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; width="600">
<mx:Form width="100%">
<mx:FormItem id="fiPTO" label="PTO" direction="horizontal" width="100%">
<mx:CheckBox id="PTO" />
<mx:FormItemLabel text="Accrual" />
<mx:ComboBox id="ptoAccrual" >
<mx:dataProvider>
<mx:Array>
<mx:String>0-3 Years - 20 Days</mx:String>
<mx:String>4-10 Years - 25 Days</mx:String>
<mx:String>10 or more - 30 Days</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:ComboBox>
</mx:FormItem>
</mx:Form>
</mx:Application>



At 03:02 PM 2/16/2005, you wrote:
Andora, Greg wrote:

> Can anybody tell me why this isn't working and how to make it work? I'm
> trying to get the formItem below to display all on one line, it doesn't
> seem to matter how wide the application is, it is always displaying
> incorrectly (with the checkbox, label, and comboBox all on different lines).


I think FormItem doesn't support direction="horizontal". Put the stuff
into a HBox:

<mx:FormItem id="fiPTO" label="PTO">
<mx:HBox>
...
</mx:HBox>
</mx:FormItem>

Manish

Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129obrvrh/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1108670523/A=2532114/R=2/SIG=12kv1e98s/*http://clk.atdmt.com/NFX/go/yhxxxnfx0020000014nfx/direct/01/&time=1108584123254785>
[]



----------
Yahoo! Groups Links
* To visit your group on the web, go to:
* <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/


*
* To unsubscribe from this group, send an email to:
* <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]


*
* Your use of Yahoo! Groups is subject to the <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.





Reply via email to