Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tarquiscani

Pages: [1]
1
Help requests / Re: ListBox font size auto-fit on 4k screens
« on: 12 October 2018, 10:20:09 »
I completely missed setTextSize :D
Thanks a lot and sorry for the silly question

2
Help requests / ListBox font size auto-fit on 4k screens
« on: 12 October 2018, 01:29:09 »
Hello, I did a search but I couldn't find anything, or maybe I didn't hang on enough.
The ListBox is the really one perfect thing I need, but I'm on a small 17'' 4k screen and the automatic fit of the text doesn't seem to work. I don't know if something is changed since this answer:
Quote
The text size can't be changed directly in ListBox. You have to set the height of the items with setItemHeight. (The text size is internally set to 0.8 * itemHeight)
I did this so that you can easily predict the amount of visible items. If the height is 200 and you set the item height to 20 then there are 10 visible items. If you would be setting the text height then you have no idea how many items fit (since there has to be a small space between the lines).



What is a possible solution?

Pages: [1]