wxListBox item height

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.
Post Reply
normunds
Knows some wx things
Knows some wx things
Posts: 31
Joined: Mon Sep 03, 2007 8:14 am
Contact:

wxListBox item height

Post by normunds » Mon Dec 29, 2008 1:43 pm

How to get wxListBox item height?
valodas - free cross-platform language learning software
http://www.valodas.com

spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

Post by spectrum » Mon Dec 29, 2008 4:35 pm

hi normunds,

i can be wrong, but from a fast look of the documents i don't think you can have the correct line height. Maybe you can obtain it someway from the wxWindow::GetFont(), and then add some "delta".

Maybe if you post what you want to achieve, someone easily will find you a different way to do it.

greetings,
spectrum

normunds
Knows some wx things
Knows some wx things
Posts: 31
Joined: Mon Sep 03, 2007 8:14 am
Contact:

Post by normunds » Tue Dec 30, 2008 8:46 am

well, I want to remove vertical scrollbar and show to user all items (by changing wxListBox height)
spectrum wrote:
Maybe if you post what you want to achieve, someone easily will find you a different way to do it.
valodas - free cross-platform language learning software
http://www.valodas.com

Post Reply