2 Replies Latest reply on Jun 2, 2010 4:26 AM by cathrineelise

    How to change text color of component label/selected item in ComboBox?

    cathrineelise

      Is there another way of changing the label and text colors of a ComboBox other than color? Color changes both the label and the items in the dropdown to the same color. I would like them to have different colors if that is possible?

        • 1. Re: How to change text color of component label/selected item in ComboBox?
          Madhav Subedi Level 4

          your question is still unclear to me. try if following helps you:

           

                    <mx:Form>
                    <mx:FormItem label="combo">
                         <mx:ComboBox selectionColor="#006699" color="#ff0000">
                              <mx:dataProvider>
                                   <mx:Array>
                                        <mx:String>a</mx:String>
                                        <mx:String>b</mx:String>
                                        <mx:String>ba</mx:String>
                                        <mx:String>ca</mx:String>
                                   </mx:Array>
                              </mx:dataProvider>
                         </mx:ComboBox>
                    </mx:FormItem>
               </mx:Form>

          • 2. Re: How to change text color of component label/selected item in ComboBox?
            cathrineelise Level 1

            Thanks for the reply, but it's not exactly what I'm looking for.

             

            Anyways, searching for another thing I stumbled across this page and found the answer! I guess that is what happends when you're looking for something else

             

            ComboBox{
               iconColor: #FFFFFF;
               textInputStyleName: cboHeaderColor;
            }
            
            .cboHeaderColor{
                color: #FFFFFF;
            }
            

             

            That was the solution It specifies a color only for the label and not the text in the dropdown menu.