As you saw in the previous recipe, it is possible to style styled controls and completely change their appearance. While in the VCL, the TListBox control is a mere wrapper over the corresponding control in the MS Windows API; in FireMonkey, the TListBox component is a completely different beast. A TListBox component contains a list of TListBoxItem, and a TListBox item is a TStyledControl descendant. This means that every single item in a TListBox component can be styled! This feature opens a huge set of new possibilities regarding the use of this control.
Creating a styled TListBox
Getting ready
In this recipe, you'll see a set of styled TListBoxItem components that, when added to TListBox, change their appearance completely...