[flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container

2006-06-21 Thread bhaq1972
Excellent!! binding has done the trick. thanks --- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED] wrote: Ah, ok. So if you want to clip 20 pixels, then you need to make sure that button2 is always 20 pixels wider than the enclosing canvas. You can make use of binding:

[flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container

2006-06-20 Thread bhaq1972
hi Jason How can I keep this effect if i modify your example to become mx:HBox width=100% height=100 backgroundColor=yellow mx:Button label=number1 width=75%/ mx:Canvas width=25% horizontalScrollPolicy=off mx:Button width=100 label=number2/ /mx:Canvas /mx:HBox thanks

Re: [flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container

2006-06-20 Thread Jason Y. Kwong
I'm not sure exactly what effect you want. Do you always want a part of button2 to be clipped off the right? If so, by how much?What's happening in my example is that the nested Canvas gives button2 only 25% of the available horizontal space. When the HBox was 300 pixels wide, that gave it 75

[flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container

2006-06-20 Thread bhaq1972
sorry, the width of button2 should have been 100% (i only want to specify percentage widths). I'm not sure exactly what effect you want. Do you always want a part of button2 to be clipped off the right? If so, by how much? Thats correct. i want to have part of the button clipped off to

Re: [flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container

2006-06-20 Thread Jason Y. Kwong
Ah, ok. So if you want to clip 20 pixels, then you need to make sure that button2 is always 20 pixels wider than the enclosing canvas. You can make use of binding:mx:HBox width=100% height=100% backgroundColor=yellow mx:Button label=number1 width=75%/ mx:Canvas id=mycanvas width=25%

[flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container

2006-06-16 Thread bhaq1972
Mike and Tom thanks for the input. firstly, I tried using clipContent before but doesn't work. if i was dealing with fixed widths and set the horizonatalScrollPolicy 'off', i can achieve the effect i was looking for eg mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*