Hi Gaurav,
In your example, the container is HBox- HBox itself align all the elements
horizontally. Setting X,Y attributes will not work with HBox. In this
scenario only left, right constraint will work. Try using it.

Thanks,
Renu


On Sat, Mar 20, 2010 at 8:47 PM, Gaurav <[email protected]> wrote:

> Hi All,
> I need a help from flex group ...
> I am writing an application in which there is a HBox which has some
> FormItems, I want to align these items according to my choice like in
> below bannerImg.gif should be in left. Title should be in middle and
> rest of all other should be align at right.
> We can do this by providing x and y coordinate BUT I want a permanent
> solution for all resolution. horizontalAlign property is not working
> here...  Any suggestion.............. how can I do it
>
> <mx:HBox>
>   <mx:FormItem>
>            <mx:Image source="\bannerImg.gif" visible="true"
> width="150" height="20"/>
>   </mx:FormItem>
>   <mx:FormItem>
>        <mx:Label id="headlabel" text="Title" fontSize="19"
> fontWeight="bold" fontStyle="italic" textDecoration="normal" />
>   </mx:FormItem>
>   <mx:FormItem label="Date" >
>              <mx:DateField id="selectedDate" width="97" />
>   </mx:FormItem>
>  <mx:FormItem >
>            <mx:Button label="Go" click="fatchCRDetailFunction();" />
>  </mx:FormItem >
>  <mx:FormItem >
>           <mx:CheckBox id="chkShowDetails" label="Show Details"
> change="showDetails()" selected="true" />
>  </mx:FormItem>
> </mx:HBox>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to