Hi,
I'm currently using a wxDataViewListCtrl and was wondering if I could easily add some datatree-like functionality. I'm currently using it to reflect a file system (kinda) and wanted to be able to group list entries by their parent folder and make them collapseable. Right now I don't see a way to do this while adding items as wxVariants.
I currently like the multiple column functionality of the wxDataViewListCtrl , but if another class would work better, I'm interested in suggestions.
Going through the documentation left me a little confused since there were a couple places that made it look like wxDataViewListCtrl might already have my desired functionality, but without enough detail for me to grasp how to do it.
Thanks!
wxDataViewListCtrl and Expander Columns?
Re: wxDataViewListCtrl and Expander Columns?
Hi,
I've little wxDVC experience, so I'll leave a proper answer to those who know more. But:
There is a custom control that sounds like what you describe in eranif's wxCustomControls.
Regards,
David
I've little wxDVC experience, so I'll leave a proper answer to those who know more. But:
There is a custom control that sounds like what you describe in eranif's wxCustomControls.
Regards,
David
Re: wxDataViewListCtrl and Expander Columns?
wxDataViewListCtrl doesn't, but wxDataViewCtrl does. However, it does require more code to setup and use. Please build and run the "dataview" sample that comes with wxWidgets and check if it does what you want.
Use the source, Luke!
- evstevemd
- Part Of The Furniture
- Posts: 2408
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: wxDataViewListCtrl and Expander Columns?
Hi,
https://docs.wxwidgets.org/trunk/classw ... _ctrl.html
Can you check wxTreeListCtrl?OkaMoez wrote: ↑Fri Nov 15, 2019 7:16 pm Hi,
I'm currently using a wxDataViewListCtrl and was wondering if I could easily add some datatree-like functionality. I'm currently using it to reflect a file system (kinda) and wanted to be able to group list entries by their parent folder and make them collapseable. Right now I don't see a way to do this while adding items as wxVariants.
https://docs.wxwidgets.org/trunk/classw ... _ctrl.html
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?