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.
Knows some wx things
Knows some wx things
Posts: 43
Joined: Mon Jul 03, 2017 12:03 am

wxTreeListCtrl columns without titles?

Postby buttonsrtoys » Thu Jun 07, 2018 6:57 pm

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
Posts: 12801
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxTreeListCtrl columns without titles?

Postby doublemax » Thu Jun 07, 2018 7:01 pm

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

Return to “C++ Development”

Who is online

Users browsing this forum: No registered users and 23 guests