Can I change the color of the selected TListBox?

I am building a FireMonkey multi-user application and I would like to change the color of the TListBox item when it is selected.
How can this be done in Rad Studio XE7?

+3


source to share


2 answers


  • Open Bitmap Style Designer (see bin folder in RAD Studio) and create a default Android style ( File -> New -> Android Style for FireMonkey ).
  • Expand the Images node and export all graphic assets.enter image description here
  • The background color of the TListBoxItem will change in any graphics editor .enter image description here
  • Go back to BitmapStyleDesigner and update each image (style.png, style20x.png, style15.png, style30x.png). To update, select the image node and click the "Update" button.enter image description here
  • Save the style to file "File-> Save As ...-> Select the file type" FireMonkey Style ".
  • Place the style book in the form and load that style.


+6


source


Yes! This is possible in RAD Studio XE7 (prior to answering the question - see Revisions of the question to see what answers).



Wink

-4


source







All Articles