Calculate height needed for checklistbox?  [SOLVED]

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Earned some good credits
Earned some good credits
Posts: 136
Joined: Tue Mar 06, 2018 6:00 pm

Calculate height needed for checklistbox?  [SOLVED]

Postby philjynx » Tue May 15, 2018 10:40 am

I have a checklistbox with (always) 15 rows.
My problem is that my development machine does not have the same fonts as the target machine. So when I use minsize, or size to adjust the height so that all 15 items are displayed without scrollbars, those absolute pixel sizes are wrong on the target machine.
How can I find out how high this checklistbox needs to be to accomodate its rows?

I tinkered with the proportion setting on a couple of the sizers and reset all the size and minsize to -1 (auto?).
Problem solved.

Return to “C++ Development”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 15 guests