From: Václav Slavík Date: Mon, 17 Dec 2001 00:30:43 +0000 (+0000) Subject: added sample showing wxTR_FULL_ROW_HIGHLIGHT X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/33984936deb06bc061d9d7d382e0752301623bfc added sample showing wxTR_FULL_ROW_HIGHLIGHT git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/treectrl/treectrl.cpp b/samples/treectrl/treectrl.cpp index 48ad41d43c..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")); diff --git a/samples/treectrl/treectrl.h b/samples/treectrl/treectrl.h index 0b61f54218..25f6e73645 100644 --- a/samples/treectrl/treectrl.h +++ b/samples/treectrl/treectrl.h @@ -153,6 +153,7 @@ public: void OnTogHideRoot(wxCommandEvent& event) { TogStyle(wxTR_HIDE_ROOT); } void OnTogRootLines(wxCommandEvent& event) { TogStyle(wxTR_LINES_AT_ROOT); } void OnTogBorder(wxCommandEvent& event) { TogStyle(wxTR_ROW_LINES); } + void OnTogFullHighlight(wxCommandEvent& event) { TogStyle(wxTR_FULL_ROW_HIGHLIGHT); } void OnDump(wxCommandEvent& event); #ifndef NO_MULTIPLE_SELECTION @@ -223,6 +224,7 @@ enum TreeTest_TogHideRoot, TreeTest_TogRootLines, TreeTest_TogBorder, + TreeTest_TogFullHighlight, TreeTest_Dump, TreeTest_DumpSelected, TreeTest_Count,