Search code examples
delphifiremonkeydelphi-xe7

Change the font colour of combo box in delphi firemonkey mobile


I have created application using Delphi XE7 firemonkey for Android mobile. In that i'm using Combobox. How can I change the font colour of the combo box?


Solution

  • ComboBox1.ListBox.ListItems[0].TextSettings.FontColor := TAlphaColorRec.White;
      ComboBox1.ListBox.ListItems[0].StyledSettings := ComboBox1.ListBox.ListItems[0].StyledSettings
    - [TStyledSetting.ssFontColor];
    

    The above code is working fine for changing the font color of the first item in the combo box "ComboBox1" in a firemonkey application.