Hi,
is there a way to find out the label textwidth of a list component item?
list.getItemAt(x) only returns an object but not the reference to the list item class (or whatever it is called :crying: )…
Thanks,
BMA
Hi,
is there a way to find out the label textwidth of a list component item?
list.getItemAt(x) only returns an object but not the reference to the list item class (or whatever it is called :crying: )…
Thanks,
BMA
You’re nearly there, I think
Try
list.getItemAt(x).label.length
This would be the length of the string stored in the label.
What I mean is the textwidth in pixels of the textfield containing that string.
Perhaps I should explain what I want to do: my goal is to set the list component’s width to the width of the longest textfield.
I’m using a skinned list component with a none mono space font.
:: Copyright KIRUPA 2024 //--