[flexcoders] Simple Layout Question

2009-11-30 Thread Rich Christiansen

Hey all,

I just recently started working with Flex (3), and I've got a simple 
layout question.


I've got a bunch of components inside of a vbox, and I've noticed that 
the vbox positions them so they are all at the same x coordinate.  How 
can I change the x-position (e.g. the indentation) of the components?


Here's some test code I've been fiddling with:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

   mx:VBox backgroundColor=0xff
   mx:HBox backgroundColor=0x00ff00
   mx:Button label=Test 1/
   mx:Button label=Test 1/
   mx:Button label=Test 1/
   mx:Button label=Test 1/
   /mx:HBox

   mx:Canvas backgroundColor=0xff 
   mx:Button label=Test 2/
   /mx:Canvas

   mx:Button label=Test 3 /
   /mx:VBox
  
/mx:Application


How can I make it so that the blue and red buttons are indented, say, 50 
pixels?  I've already tried fiddling with the 'left' and 'paddingLeft' 
attributes with little success... :/


Any thoughts?  This has got to be possible with VBox, but I can't seem 
to figure it out...


Thanks,
-Rich



Re: [flexcoders] Simple layout question...

2005-05-07 Thread Jeff Steiner
I would guess that he was extending the namespace as a custom component?

Jeff
http://www.flexauthority.com

- Original Message - 
From: JesterXL [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, May 06, 2005 10:42 PM
Subject: Re: [flexcoders] Simple layout question...


Who did your custom components extend?

- Original Message - 
From: Tarik Ahmed
To: flexcoders@yahoogroups.com
Sent: Friday, May 06, 2005 8:06 PM
Subject: [flexcoders] Simple layout question...


  Hey guys. I have a pretty basic question. I have two custom components I
made that I want to include in a tab. Each component displays a certain
chart. I want to put them side by side:

   mx:Canvas label=Summary width=100%
 mx:HBox width=100%
comp:CurrentSummary width=40%/
comp:ActionsTracked width=60%/
 /mx:HBox
   /mx:Canvas

Well it loads both components, however they're superimposed against each
other which is actually a pretty cool effect (a bar chart super imposed
over a pie chart). But not what I'm looking to do at the moment. :) Any
ideas? Thanks!!!







 
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/