I am trying to create a simple form in flex (flash builder 4). I placed the form container and FormItems inside. Form elements are, for example, standard "client" fields, such as First, Last, Address, City, State, Zip.
By default, it exposes the fields vertically and makes the field labels correct, which looks good.
However, I would like some of the fields to be horizontal - for example, something like this:
First __________ Last ___________ Address _____________________ City ___________ St ___ Zip ____
I tried to put the first / last in the HGroup container, but it doesnβt quite work - I lose the correct justification of the labels, it looks something like this:
First __________ Last ___________ Address _____________________ City ___________ St ___ Zip ____
This is an example of how I am trying to make the first / last horizon, but it will not be correctly justified with the referral - however, the city and the referral will be correctly justified together:
<mx:Form x="0" y="307" width="100%"> <s:HGroup> <mx:FormItem label="First"> <s:TextInput/></mx:FormItem> <mx:FormItem label="Last"><s:TextInput/></mx:FormItem> </s:HGroup> <mx:FormItem label="Referral"><s:TextInput/></mx:FormItem><mx:FormItem label="City"> <s:TextInput/> </mx:FormItem> </mx:Form>
Is it almost as if I need a table with colSpan capabilities or?
This custom component looked promising, but didn't seem to work in fb4 http://cookbooks.adobe.com/post_Multi_Column_Form_Layout-9644.html
Also are there any good books / sites / etc that discuss UI design / design etc. in Flex, which can I view?