X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4693b20c7500190c3cc8c02919c45436bf5efbc9..36a56c6568bd29350a24f32bf5bbad0532a42a19:/samples/treectrl/treectrl.cpp diff --git a/samples/treectrl/treectrl.cpp b/samples/treectrl/treectrl.cpp index 6e6a8a613f..0a62c84082 100644 --- a/samples/treectrl/treectrl.cpp +++ b/samples/treectrl/treectrl.cpp @@ -75,6 +75,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) MENU_LINK(TogHideRoot) MENU_LINK(TogRootLines) MENU_LINK(TogBorder) + MENU_LINK(TogFullHighlight) MENU_LINK(Dump) #ifndef NO_MULTIPLE_SELECTION MENU_LINK(DumpSelected) @@ -185,6 +186,7 @@ MyFrame::MyFrame(const wxString& title, int x, int y, int w, int h) style_menu->Append(TreeTest_TogRootLines, "Toggle &lines at root"); style_menu->Append(TreeTest_TogHideRoot, "Toggle &hidden root"); style_menu->Append(TreeTest_TogBorder, "Toggle &item border"); + style_menu->Append(TreeTest_TogFullHighlight, "Toggle &full row highlight"); style_menu->Append(TreeTest_TogEdit, "Toggle &edit mode"); #ifndef NO_MULTIPLE_SELECTION style_menu->Append(TreeTest_ToggleSel, wxT("Toggle &selection mode")); @@ -243,8 +245,7 @@ MyFrame::MyFrame(const wxString& title, int x, int y, int w, int h) m_treeCtrl = new MyTreeCtrl(this, TreeTest_Ctrl, wxDefaultPosition, wxDefaultSize, - wxTR_TWIST_BUTTONS | wxTR_NO_LINES | - wxTR_EDIT_LABELS | + wxTR_DEFAULT_STYLE | wxTR_EDIT_LABELS | #ifndef NO_VARIABLE_HEIGHT wxTR_HAS_VARIABLE_ROW_HEIGHT | #endif