Re[4]: wxDataViewListCtrl does not look so great on the Mac.
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
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/
signature.asc
(application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iEYEABECAAYFAmQUmqYACgkQBupB3k9sHoZYmgCeI+2qCn1KP17yEwUQGBmveZ4z aVgAn2xzfjYC+1+kPBUPK//UQiqgBNmN =y8ca -----END PGP SIGNATURE-----