Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Align component

    This is probably another question in the "newbie" category: How do I align
    components like in html where I can simply include align="center/right/left" to
    control the positioning of a component? here is an example:

    <mx:HBox width="100%">
    <mx:Label text="Select a process state:"/>

    <mx:ComboBox id="state" width="150">
    <mx:dataProvider>
    <mx:Array>
    <mx:Object label="Defined" data="1"/>
    <mx:Object label="Sceduled" data="2"/>
    <mx:Object label="Processed" data="3"/>
    </mx:Array>
    </mx:dataProvider>
    </mx:ComboBox>
    <mx:Button label="Get Process List"
    click="srv.listProcs(user,state.selectedItem.data) "/>
    </mx:HBox>

    I want the button to be right-justified inside this HBox. How do I do that?
    Thanks in advance.

    Gary


    Gary Zhong Guest

  2. Similar Questions and Discussions

    1. Align in table
      On the home page of my site - http://grafikhaus.co.uk/ - I have a three-column, one-row table, each cell of which holds one image with some text...
    2. How to make a protected property in the base component public in the derived component?
      I have a base component, from which several components derive. What I want is to just publish some of the protected properties in the base...
    3. Align
      How to align two or more object relative to the center axe of the last chosen one AND keep the position of the reference object (last picked)intact...
    4. how to Align text left & vertical align middle
      Hello, I have a asp lable control, which I use to display text in, I would like to have the text display aligned in the center and vertical...
    5. Text Align
      When I install my accesss 2000 application on some machines the application ignores the "Text Align" Property Setting in some Activex Controls(List...
  3. #2

    Default Re: Align component

    <mx:HBox horizontalAlign="right"/>
    Beau Scott Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139