wxTreeCtrl has colours and fonts too now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -565,6 +565,18 @@ void MyTreeCtrl::AddTestItemsToTree(size_t numChildren,
|
||||
SetItemImage(rootId, TreeCtrlIcon_FolderOpened, wxTreeItemIcon_Expanded);
|
||||
|
||||
AddItemsRecursively(rootId, numChildren, depth, 0);
|
||||
|
||||
// set some colours/fonts for testing
|
||||
SetItemFont(rootId, *wxITALIC_FONT);
|
||||
|
||||
long cookie;
|
||||
wxTreeItemId id = GetFirstChild(rootId, cookie);
|
||||
SetItemTextColour(id, *wxBLUE);
|
||||
|
||||
id = GetNextChild(rootId, cookie);
|
||||
id = GetNextChild(rootId, cookie);
|
||||
SetItemTextColour(id, *wxRED);
|
||||
SetItemBackgroundColour(id, *wxLIGHT_GREY);
|
||||
}
|
||||
|
||||
void MyTreeCtrl::GetItemsRecursively(const wxTreeItemId& idParent, long cookie)
|
||||
|
Reference in New Issue
Block a user