TListBox: Does anyone know of a way to have variable width list items for ListBox where the ListStyle is set to Horizontal?

TListBox: Does anyone know of a way to have variable width list items for ListBox where the ListStyle is set to Horizontal?
I would like the Listitems's Text Autosized.

Comments

  1. Firemonkey or VCL? How about using a TText component -- it can be set to autosize and so make the text fill up whatever container it's in. Just an idea..

    ReplyDelete
  2. Firemonkey. I'll try changing the style again ..

    ReplyDelete
  3. Nope, TListbox have an ItemWidth Property that determines the Item Width. I need the width to be dynamically set based on the Text Width.

    ReplyDelete

Post a Comment