wxListCtrl shows column's content though column width = 0

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Jahilia
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Dec 11, 2004 9:59 am
Contact:

wxListCtrl shows column's content though column width = 0

Post by Jahilia »

Hello!

I am struggeling with the behaviour of wxListCtrl. My program has an wxListCtrl with three columns. One holds an ID that I want to hide from the user. Therefore I set the width of this column to 0. Nevertheless part of this column's content is displayed - though not the header.

I already changed the position of this column from the beginning to the end, but the fault remains. Where am I wrong?
This is how it looks, when I put the hidden column at first position
This is how it looks, when I put the hidden column at first position
Textfehler mit Spalte ID am Anfang.jpg (7.54 KiB) Viewed 943 times
This is how it looks when column width = 0 and put at last position
This is how it looks when column width = 0 and put at last position
Spalte sichtbar trotz column width=0.jpg (24.68 KiB) Viewed 943 times
This ist how it looks like with column width = 30 - to show what is inside
This ist how it looks like with column width = 30 - to show what is inside
Spalte mit column width=30.jpg (24.81 KiB) Viewed 943 times

Code: Select all

lcUebersicht->SetColumnWidth(COLUMN_ID, 0);
lcUebersicht->SetColumnWidth(COLUMN_DATUM, wxLIST_AUTOSIZE);
lcUebersicht->SetColumnWidth(COLUMN_BETREFF, wxLIST_AUTOSIZE);
I am using 64bit Linux (Xubuntu Xenial 16.04) with wxWidgets 3.0.2 and gcc 5.4.0.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxListCtrl shows column's content though column width = 0

Post by doublemax »

Can you see the same problem in the "listctrl" sample that comes with wxWidgets? If yes, please open a bug report at http://trac.wxwidgets.org (currently down).
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxListCtrl shows column's content though column width = 0

Post by ONEEYEMAN »

You should also try to check that the problem is still exist in the Git HEAD prior to reporting it as a bug.
Also, when you please mention you GTK+ version.

Thank you.
Post Reply