Search code examples
firemonkeyc++builderc++builder-10.3-rio

How to make items in a FMX TListBox bold?


How can I make the items in my FMX TListBox bold? I can't find anything by myself, either in the documentation or the Internet.


Solution

  • Thanks to Gregg who gave a working answer for delphi, i'll put a C++Builder version here.

    I made a loop over my ListBox with the item count, and it does not affect the loading speed of the ListBox (around 4000 items in my case) so it's a good solution at least for me.

    ListBox->ListItems[x]->StyledSettings = ListBox->ListItems[x]->StyledSettings >> TStyledSetting::Style;
    ListBox->ListItems[x]->Font->Style = ListBox->ListItems[x]->Font->Style << fsBold;