From: <fee...@wx...> - 2004-10-15 10:05:28
|
Rui Curado (rui...@ya...) wants to give feedback for component: wxTreeListCtrl Dear Otto, Thanks for your great resource, wxCode. I just incorporated the latest version of your wxTreeListCtrl, and I found that it works OK except one thing: Data in extra columns is erased when the row is selected. I am using wxWidgets 2.5.3, the development version released a few days ago, under win2000 and VC++6. I know it is stated on the site that the latest supported version is 2.5.1, but you could use this report to help upgrade your class to 2.5.3. To reproduce the problem: In your treelisttest.cpp file add : - In method AddTestItemsToTree() After AddColumn (_T(\"Main\"), 250); add: AddColumn(_(\"Col1\"), 50, wxTL_ALIGN_LEFT); SetColumnAlignment(1,wxTL_ALIGN_RIGHT); AddColumn(_(\"Col2\"), 50, wxTL_ALIGN_LEFT); SetColumnAlignment(2,wxTL_ALIGN_RIGHT); - In method AddItemsRecursively() After wxTreeItemId id = AppendItem(...) add: SetItemText(id,1,\"text1\"); SetItemText(id,2,\"text2\"); Then compile and try. When selecting a tree element, the corresponding list texts disappear until you select another tree element. I hope this helps. Regards Rui Curado |