On 5/5/05, Robert Brueckmann <[EMAIL PROTECTED]> wrote:
> Is there a way to set how many items you want in a row for the tile
> container to put...it seems it's default is 3 per row...any way to
> change this?  There doesn't seem to be anything in the API or in the
> examples that come with Flex or in the APIs themselves...just figured
> there might be something clever someone is doing out there...

The Tile container is designed to lay out its children in a way such
that, if children no longer fit in one direction, they wrap to the
next row/column.  So it's like a Box with automatic wrapping.  There's
no hard limit on the number of rows/columns in a Tile -- it depends on
the available space.  The horizontal Tile grows vertically, the
vertical Tile grows horizontally.

If you're looking for a fixed number of columns/rows, then you really
want a bunch of Box'es inside Box'es.

 <!-- 3x3 grid -->
 <mx:VBox>
  <mx:HBox><!-- 3 children here --></mx:HBox>
  <mx:HBox><!-- 3 children here --></mx:HBox>
  <mx:HBox><!-- 3 children here --></mx:HBox>
 </mx:VBox>

Or (bingo!) a Grid:

 <mx:Grid
   horizontalGap="8"
   verticalGap="8">
   ...
   These child tags are examples only:
      <mx:GridRow id="row1"<
       <mx:GridItem
         rowSpan="1"
         colSpan="1">
           <mx:Button label="Button 1"/>
       </mx:GridItem>
       ...
      </mx:GridRow>
   ...
 />


 
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/
 


Reply via email to