I am new to the new TListBox controls... I have a class that need to be associated to my TListBox, how do I can do that?

I am new to the new TListBox controls... I have a class that need to be associated to my TListBox, how do I can do that?

Im using a TListBoxItem to setup my listbox, sure I can put text and details, but I cant handle objects as the old listbox :( I can't found an example for that yet, even on the FMX demos...

Comments

  1. The same problem at the first usage, actually this is completely new class

    ReplyDelete
  2. You create a new descendant class of the tlistboxitem and style it to your needs - tlistbox in FM is a visual list container - not the same as the vcl list box at all. Check out the custom controls sample to see how it works.

    ReplyDelete
  3. To me was easier to create a parallel TList with my class, I know it's not a "kosher" solution, very ugly indeed but worked... Stranger that TListBox FMX has the AddObjects() just like old VCL but I cannot set up my needs, easly.

    ReplyDelete

Post a Comment