[flexcoders] layout question
Hi. I've been doing a fair amount of Actionscript, and am now getting to do some mxml layout. I I have a component with a login control (this is the only child in the component, and the parent is a VBox with width and height set to 100%): mx:Panel id=loginPanel mx:Form id=loginForm left=10 right=10 bottom=10 top=10 mx:FormHeading label=Welcome/ mx:FormItem label=User Name mx:TextInput id=username/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password displayAsPassword=true/ /mx:FormItem /mx:Form mx:Button label=Log in click=handleLogin(event) bottom=10 right=10/ /mx:Panel This does what I expect for the form, (it has a margin of 10px), but the button is clinging to the bottom left of the panel. I think I'm missing something. Any suggestions? -Maciek
Re: [flexcoders] layout question
verticalAlign=middle On Wed, May 14, 2008 at 12:42 AM, Maciek [EMAIL PROTECTED] wrote: Hi. I've been doing a fair amount of Actionscript, and am now getting to do some mxml layout. I I have a component with a login control (this is the only child in the component, and the parent is a VBox with width and height set to 100%): mx:Panel id=loginPanel mx:Form id=loginForm left=10 right=10 bottom=10 top=10 mx:FormHeading label=Welcome/ mx:FormItem label=User Name mx:TextInput id=username/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password displayAsPassword=true/ /mx:FormItem /mx:Form mx:Button label=Log in click=handleLogin(event) bottom=10 right=10/ /mx:Panel This does what I expect for the form, (it has a margin of 10px), but the button is clinging to the bottom left of the panel. I think I'm missing something. Any suggestions? -Maciek
Re: [flexcoders] layout question
I don't see how that would help--I'd like to place the button on the lower-right of the container, 10 pixels from the bottom edge, and ten pixels from the right edge. I'm not even so much interested in getting this specific scenario to work (I suppose I could set horizontalAlign=right on the panel to get what I want, which would also shift the form, but the form is constrained to be centered anyway), but I'd like to know why this isn't working as I would expect--what am I missing? It seems that if I set the button constraints like that, it should be 10px from the bottom and 10px from the right (unless, of course, other constraints come into play). -Maciek -Original Message- From: Allan Pichler [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] layout question Date: Wed, 14 May 2008 00:48:20 -0700 verticalAlign= middle On Wed, May 14, 2008 at 12:42 AM, Maciek [EMAIL PROTECTED] wrote: Hi. I've been doing a fair amount of Actionscript, and am now getting to do some mxml layout. I I have a component with a login control (this is the only child in the component, and the parent is a VBox with width and height set to 100%): mx:Panel id=loginPanel mx:Form id=loginForm left=10 right=10 bottom=10 top=10 mx:FormHeading label=Welcome/ mx:FormItem label=User Name mx:TextInput id=username/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password displayAsPassword=true/ /mx:FormItem /mx:Form mx:Button label=Log in click=handleLogin(event) bottom=10 right=10/ /mx:Panel This does what I expect for the form, (it has a margin of 10px), but the button is clinging to the bottom left of the panel. I think I'm missing something. Any suggestions? -Maciek
[flexcoders] Layout Question
All, I am new to Flex and found a layout I'd like to mimic. On the Flex.org site, under the Showcase page: http://flex.org/showcase/ Then Browse, is this layout a styled dataGrid? a styled list? Any suggestions would be appreciated. TIA, john
[flexcoders] Layout question
I have a component that I need to center within a control bar attached to a panel. But the control bar also has a couple of link buttons over on the left. In the rest of the app, I have not yet had a need for absolute layout or constraints. For this scenario, the following seems to work: - a Canvas in the control bar, - set horizontalCenter=0 on the component that needs centering. - put the two link buttons in an HBox - set a minimum width on the panel, so the centered component and link buttons can't overlap. Does this seem like a good approach? As an aside, I'd love to have a setting so that components with text labels (like titles in panels, or link buttons) could shrink to small widths, and display a partial title with ellipses. Then the minimum width in the above example could be lower. Thanks in advance.
RE: [flexcoders] Layout question
I thought buttons did show ... You have to size them smaller than they measure. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, September 19, 2007 9:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Layout question I have a component that I need to center within a control bar attached to a panel. But the control bar also has a couple of link buttons over on the left. In the rest of the app, I have not yet had a need for absolute layout or constraints. For this scenario, the following seems to work: - a Canvas in the control bar, - set horizontalCenter=0 on the component that needs centering. - put the two link buttons in an HBox - set a minimum width on the panel, so the centered component and link buttons can't overlap. Does this seem like a good approach? As an aside, I'd love to have a setting so that components with text labels (like titles in panels, or link buttons) could shrink to small widths, and display a partial title with ellipses. Then the minimum width in the above example could be lower. Thanks in advance.
[flexcoders] layout question
Hello, everyone I am creating a custom layout container. This container would always be wrapped by VBox. i.e. mx:VBoxcustom:Container //mx:VBox. This custom container extends mx.containers.Container Question: when at some point I need to invalidate size and I call the invalidateSize() method the parent component doesn't get measured and its size invalidated. Is there some other method that I need to call? Another question: does anyone have or can anyone point me to a good example of custom container that extends mx.containersContainer Thanks, --- Dmitry -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] layout question
Is there some other method that I need to call? parent.invalidateSize(); - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Miller Sent: Monday, February 13, 2006 9:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] layout question Hello, everyone I am creating a custom layout container. This container would always be wrapped by VBox. i.e. mx:VBoxcustom:Container //mx:VBox. This custom container extends mx.containers.Container Question: when at some point I need to invalidate size and I call the invalidateSize() method the parent component doesn't get measured and its size invalidated. Is there some other method that I need to call? Another question: does anyone have or can anyone point me to a good example of custom container that extends mx.containersContainer Thanks, --- Dmitry -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/