-
- // Add some dummy items
- wxTreeItemId rootId = AddRoot(_("Root"), 3, -1);
- int i;
- for (i = 1; i <= 20; i++)
- {
- wxString label;
- label.Printf(wxT("Item %d"), i);
- wxTreeItemId id = AppendItem(rootId, label, 0);
- SetItemImage( id, 1, wxTreeItemIcon_Expanded );
-
- int j;
- for (j = 0; j < 10; j++)
- AppendItem(id, _("Child"), 2);
- }
- Expand(rootId);
+
+ // Add some dummy items
+ wxTreeItemId rootId = AddRoot(_("Root"), -1, -1);
+ int i;
+ for (i = 1; i <= 20; i++)
+ {
+ wxString label;
+ label.Printf(wxT("Item %d"), i);
+ wxTreeItemId id = AppendItem(rootId, label, 0);
+ //SetItemImage( id, 1, wxTreeItemIcon_Expanded );
+
+ int j;
+ for (j = 0; j < 10; j++)
+ AppendItem(id, _("Child"), 1);
+ }
+ Expand(rootId);