wxTreeListCtrl columns without titles?

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
buttonsrtoys
Experienced Solver
Experienced Solver
Posts: 58
Joined: Mon Jul 03, 2017 12:03 am

wxTreeListCtrl columns without titles?

Post by buttonsrtoys »

wxTreeListCtrl::AppendColumn(..) requires a wxString "title" parameter that gets added to the top of the TreeList column. I want to omit titles atop my columns. I tried passing a wxEmptyString for the title. I got no title but also got a blank row atop my TreeList where the title would have been.

Is it possible to omit TreeList titles without getting an empty row?
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxTreeListCtrl columns without titles?

Post by doublemax »

Add wxTL_NO_HEADER to the style flag.
Use the source, Luke!
Post Reply