Resizing listctrl in wxListbook Topic is 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.
Post Reply
teemo
Knows some wx things
Knows some wx things
Posts: 33
Joined: Thu Jun 02, 2005 2:52 pm
Location: Egypt
Contact:

Resizing listctrl in wxListbook

Post by teemo »

Is there any way that i can change the width of the listCtrl in wxListbook? I am currently appending pages (with no icons) named: "Dimension 1", "Dimension 2"...etc., and they are being wrapped up, how can i widen the listCtrl / listCtrl column size, so that it displays the whole text?
Tamer El Nashar
VRSonic Inc.
xskater11x
Earned a small fee
Earned a small fee
Posts: 22
Joined: Sat May 20, 2006 2:45 am

Post by xskater11x »

Code: Select all

bool SetColumnWidth(int col, int width)
sorry, in a rush to leave now, i ahve a function that finds the width of a text absed on font that you can use to find the width you need to set it to. I'll post it later.
teemo
Knows some wx things
Knows some wx things
Posts: 33
Joined: Thu Jun 02, 2005 2:52 pm
Location: Egypt
Contact:

Post by teemo »

the following code doesn't work:

m_Listbook->GetListView()->SetColumnWidth( 0, 100 );
Tamer El Nashar
VRSonic Inc.
normunds
Knows some wx things
Knows some wx things
Posts: 31
Joined: Mon Sep 03, 2007 8:14 am
Contact:

Post by normunds »

This doesn't work :(
Any other solution?
teemo wrote:the following code doesn't work:

m_Listbook->GetListView()->SetColumnWidth( 0, 100 );
valodas - free cross-platform language learning software
http://www.valodas.com
Post Reply