2
votes

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?

1
It's not possible to change the font or color by editing the properties of the combobox. In Android it all changes back to default but you can use the following link to change the font, but it will change all of them! firemonkeyblog.blogspot.nl/2014/12/… - Remi
I have seen this link and I'm not able to understand.Is there any sample code.? And in this link, changing the font colour is not explained - Work 2 Enjoy - Enjoy 2 Work
Changing the color of the font isn't possible as far as I know. And don't know if there is any sample code for changing the font. Just follow the steps from the link - Remi
ok. If we need then we need to create new component only and no other options right.? - Work 2 Enjoy - Enjoy 2 Work
Yes it changes all the fonts automaticly I think - Remi

1 Answers

6
votes
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.