elcharlie
elcharlie

Reputation: 529

Can I change the color of a TListBox Selected Item?

I'm creating a multidevice FireMonkey application and I would like to change the color of a TListBox item when it is selected.
How can this be done in Rad Studio XE7?

Upvotes: 3

Views: 2516

Answers (2)

Yaroslav Brovin
Yaroslav Brovin

Reputation: 964

  1. Open Bitmap Style Designer (see a bin folder of RAD Studio) and create style by default for Android (File -> New -> Android Light Style for FireMonkey)
  2. Expand node "Images" and make export all graphics resources.enter image description here
  3. In any kind of graphics editor change color of background of TListBoxItem. enter image description here
  4. Return to BitmapStyleDesigner and update each images (style.png, style20x.png, style15.png, style30x.png). For updating, select image node and click on "Update" button. enter image description here
  5. Save style to file "File->Save as...->Выбираем тип файла "FireMonkey Style".
  6. Put Style Book in a form and load this style.

Upvotes: 8

HeartWare
HeartWare

Reputation: 8243

Yes! It is possible in RAD Studio XE7 (answered before edit of question - please see revisions of question to understand what is being answered).

Wink

Upvotes: -4

Related Questions