Re: Re[4]: wxDataViewListCtrl does not look so great on the Mac.
Tony Kennedy <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Hmmm. Looks like I've managed to use the wrong control. I've definitely got
trees being displayed.
I'll revisit things and use wxDataViewCtrl instead and see if that works
ok.
On Friday, 17 March 2023 at 16:51:54 UTC Vadim Zeitlin wrote:
> On Fri, 17 Mar 2023 08:06:48 -0700 (PDT) Tony Kennedy wrote:
>
> TK> To get close to what I have, it's the "Page_ListStore" part of the
> dataview
> TK> sample (in dataview.cpp, search for "case Page_ListStore".
> TK>
> TK> This sample has no trees like mine has, all the rows are added via
> TK>
> TK> wxVector<wxVariant> data;
> TK> for (unsigned int i=0; i<10; i++)
> TK> {
> TK> data.clear();
> TK> data.push_back( (i%3) == 0 );
> TK> data.push_back( i == 7 ); // select a single (random) radio
> TK> item
> TK> data.push_back( wxString::Format("row %d", i) );
> TK> data.push_back( long(5*i) );
> TK>
> TK> lc->AppendItem( data );
> TK> }
> TK>
> TK> So does anyone know how to append a child item to one of these rows?
>
> Sorry, I'm completely lost. How do you expect to have trees in
> wxDataViewListCtrl? The "List" part means that it's a list, i.e. it has a
> flat structure and is incapable of representing trees by definition.
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> http://www.tt-solutions.com/
>
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/bfe44c1b-e837-47e4-8960-90f746a5010dn%40googlegroups.com.