1. added wxTreeCtrl::SetItemBold and IsBold, updated the sample to show them
2. wxTreeItemId HitTest(const wxPoint& point) added - to be implemented on other platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -32,8 +32,8 @@ class MyTreeCtrl : public wxTreeCtrl
|
||||
public:
|
||||
enum
|
||||
{
|
||||
TreeCtrlIcon_Folder,
|
||||
TreeCtrlIcon_File
|
||||
TreeCtrlIcon_File,
|
||||
TreeCtrlIcon_Folder
|
||||
};
|
||||
|
||||
MyTreeCtrl(wxWindow *parent, const wxWindowID id,
|
||||
@@ -88,9 +88,14 @@ public:
|
||||
void OnDeleteAll(wxCommandEvent& event);
|
||||
void OnRecreate(wxCommandEvent& event);
|
||||
|
||||
void OnSetBold(wxCommandEvent& event) { DoSetBold(TRUE); }
|
||||
void OnClearBold(wxCommandEvent& event) { DoSetBold(FALSE); }
|
||||
|
||||
private:
|
||||
MyTreeCtrl *m_treeCtrl;
|
||||
|
||||
void DoSetBold(bool bold = TRUE);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
@@ -100,6 +105,8 @@ enum
|
||||
TreeTest_Quit,
|
||||
TreeTest_About,
|
||||
TreeTest_Dump,
|
||||
TreeTest_Bold,
|
||||
TreeTest_UnBold,
|
||||
TreeTest_Delete,
|
||||
TreeTest_DeleteAll,
|
||||
TreeTest_Recreate,
|
||||
|
Reference in New Issue
Block a user