9 Replies Latest reply on May 26, 2010 12:27 AM by SudhirPrusty

    why HBox is not displaying Label value?

    snkd

      I am trying to display Label value of HBox (red colored stuff).

       

       

       

      <mx:HBox label="Tax Detail" width="100%" height="100%">

      <mx:VBox autoLayout="true">

      <mx:HBox label="Tax Details" borderStyle="solid"  borderColor="#000000" toolTip="Tax Details" textAlign="center">

      <mx:Form width="100%" height="90%">

      <mx:FormItem  label="Tax Registered(Y/N)"  direction="horizontal">

      <mx:RadioButtonGroup id="rbgCreditTaxDetails"/>

      <mx:RadioButton label="Yes" groupName="rbgCreditTaxDetails"/>

      <mx:RadioButton label="No" groupName="rbgCreditTaxDetails"/>

      </mx:FormItem>

      <mx:DataGrid dataProvider="{status}">

      <mx:columns>

      <mx:DataGridColumn headerText="TaxCode" dataField="status"/>

      <mx:DataGridColumn headerText="Tax Registration No." dataField="description"/>

      </mx:columns>

      </mx:DataGrid>

       

      </mx:Form>

      </mx:HBox>

       

      </mx:VBox>

      </mx:HBox>

        • 1. Re: why HBox is not displaying Label value?
          RUSH-ME Level 3

          Hi

           

          That label will be helpful when you add your HBox to a TabNavigator. In the tabs label will show.

           

          Hope this helps

          Rush-me

          • 2. Re: why HBox is not displaying Label value?
            SpaghettiCoder Level 3

            All I see is you have a HBox, with a label of "Tax Details" and that's about it.

             

            If you're trying to get that to display in the HBox itself it won't work

             

            if you have it to be displayed in a navigation container then it's fine.

             

            If you're trying to have it displayed in another object, I'm not seeing that other object in the code you posted.

            1 person found this helpful
            • 3. Re: why HBox is not displaying Label value?
              snkd Level 1

              I have already done it.I need to do as following html code.And I need HTML fieldset and legend like tags for this work....

              like following

               

              that mean inside the tab there sould be a feild set like thing..Can you help me...

               

              reference from here

              <form>
                <fieldset>
                  <legend>Personalia:</legend>
                  Name: <input type="text" size="30" /><br />
                  Email: <input type="text" size="30" /><br />
                  Date of birth: <input type="text" size="10" />
                </fieldset>
              </form>

               

               

               

              <mx:TabNavigator width="100%" height="100%" backgroundAlpha="0.1">

               

               

              <mx:HBox label="Genaral" width="100%" height="100%">

              </mx:HBox>

               

               

              <mx:HBox label="Delivery" width="100%" height="100%">

              <mx:VBox>

              <mx:Label text="Delivery Details"/>

              <mx:HBox label="Delivery Details" borderStyle="solid"  borderColor="#000000" toolTip="Delivery Details" textAlign="center">

              </mx:HBox>

               

              <mx:Label text="Contact Details"/>

              <mx:HBox label="Contact Details" borderStyle="solid"  borderColor="#000000" toolTip="Contact Details" textAlign="center">

              </mx:HBox>

               

              </mx:VBox>

              </mx:HBox>

               

              <mx:HBox label="Credit Control" width="100%" height="100%">   

               

              </mx:HBox>

               

              </mx:TabNavigator>

               

              Note that: Red color stuffs are not displaying and Blue colored one is displaying...any ideas? what should i do for that?

               

              Thanx in advance for your helps...

               

               

               

              http://dl.dropbox.com/u/7375335/img1.bmp

              • 4. Re: why HBox is not displaying Label value?
                SpaghettiCoder Level 3

                so you want a tabNavigator with labels that say

                 

                Delivery Details

                Contact Details

                 

                ?

                • 5. Re: why HBox is not displaying Label value?
                  BhaskerChari Level 4

                  Hi,

                   

                  The red colored stuffs will never display because these are not the immediate childs of the TabNavigator...Only the lable gets displayed for the immediate childs(like the ones in blue stuff) placed in the Tabnavigator....the labe will not get displayed for the sub childs of childs for TabNavigator.

                   

                  Try to make use of Label control for displaying text for subchilds.

                   

                  Hope this will make things clear...

                   

                  If this post answers your question or helps, please kindly mark it as such.


                  Thanks,

                  Bhasker Chari

                  1 person found this helpful
                  • 6. Re: why HBox is not displaying Label value?
                    snkd Level 1

                    I need somthing like following.Cant I do it by using HBox?

                     

                    http://blog.mindtheflex.com/wp-content/uploads/2008/03/picture-1.jpg

                    • 7. Re: why HBox is not displaying Label value?
                      SpaghettiCoder Level 3

                      Like Bhasker posted, and I mentioned earlier.

                       

                      You can have it in a tab navigator, but then only the tab names will have the Hbox label.

                       

                      1. For what you're doing you'll need to give your HBox ID's

                       

                      <mx:HBox id="myHbox" label="Delivery Details"

                       

                      2. Create a label, and then just bind it to the HBox

                       

                      <mx:Label text="{myHbox.label}"

                      • 8. Re: why HBox is not displaying Label value?
                        snkd Level 1

                        HI all,

                        Thanks for every one help me to solve problem.I use panel with solid border out side the HBox (with border) control. http://dl.dropbox.com/u/7375335/1.bmp

                        Thank you every one(SpaghettiCoder ,BhaskerChari, RUSH-ME) to get understood me how label property of HBox is working in Application and inside navigaters like tabnevigator Accordian ...etc..

                        I blog @ http://sankadil.blogspot.com/ Once again thnx every one...

                         

                        http://sankadil.blogspot.com/

                        • 9. Re: why HBox is not displaying Label value?
                          SudhirPrusty

                          HBox Is Not A Visible Component.So U can't directly see the label Of Any Visible Container Through the only Hbox.so after giving the visible container inside tht HBox u can see.

                          Thanks