Added OnEraseBackground to wxNotebook on wxMSW to avoid black background;
wxTreeCtrl mod for BC++ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0b4d4194a2
commit
a7e594b239
@ -634,6 +634,17 @@ samples/tab/*.xpm
|
|||||||
samples/tab/*.ico
|
samples/tab/*.ico
|
||||||
samples/tab/*.txt
|
samples/tab/*.txt
|
||||||
|
|
||||||
|
samples/notebook/*.cpp
|
||||||
|
samples/notebook/*.h
|
||||||
|
samples/notebook/makefile*
|
||||||
|
samples/notebook/*.rc
|
||||||
|
samples/notebook/*.def
|
||||||
|
samples/notebook/*.bmp
|
||||||
|
samples/notebook/*.xbm
|
||||||
|
samples/notebook/*.xpm
|
||||||
|
samples/notebook/*.ico
|
||||||
|
samples/notebook/*.txt
|
||||||
|
|
||||||
samples/png/*.cpp
|
samples/png/*.cpp
|
||||||
samples/png/*.h
|
samples/png/*.h
|
||||||
samples/png/makefile*
|
samples/png/makefile*
|
||||||
|
@ -159,6 +159,7 @@ public:
|
|||||||
void OnSelChange(wxNotebookEvent& event);
|
void OnSelChange(wxNotebookEvent& event);
|
||||||
void OnSetFocus(wxFocusEvent& event);
|
void OnSetFocus(wxFocusEvent& event);
|
||||||
void OnNavigationKey(wxNavigationKeyEvent& event);
|
void OnNavigationKey(wxNavigationKeyEvent& event);
|
||||||
|
void OnEraseBackground(wxEraseEvent& event);
|
||||||
|
|
||||||
// base class virtuals
|
// base class virtuals
|
||||||
// -------------------
|
// -------------------
|
||||||
|
@ -143,7 +143,7 @@ public:
|
|||||||
|
|
||||||
// accessors: set/get the item associated with this node
|
// accessors: set/get the item associated with this node
|
||||||
void SetId(const wxTreeItemId& id) { m_itemId = id; }
|
void SetId(const wxTreeItemId& id) { m_itemId = id; }
|
||||||
const wxTreeItemId& GetId() const { return m_itemId; }
|
const wxTreeItemId& GetId() const { return (wxTreeItemId&) m_itemId; }
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
EVT_NOTEBOOK_PAGE_CHANGED(-1, wxNotebook::OnSelChange)
|
EVT_NOTEBOOK_PAGE_CHANGED(-1, wxNotebook::OnSelChange)
|
||||||
|
|
||||||
EVT_SIZE(wxNotebook::OnSize)
|
EVT_SIZE(wxNotebook::OnSize)
|
||||||
|
EVT_ERASE_BACKGROUND(wxNotebook::OnEraseBackground)
|
||||||
EVT_SET_FOCUS(wxNotebook::OnSetFocus)
|
EVT_SET_FOCUS(wxNotebook::OnSetFocus)
|
||||||
EVT_NAVIGATION_KEY(wxNotebook::OnNavigationKey)
|
EVT_NAVIGATION_KEY(wxNotebook::OnNavigationKey)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
@ -476,3 +477,9 @@ void wxNotebook::ChangePage(int nOldSel, int nSel)
|
|||||||
|
|
||||||
m_nSelection = nSel;
|
m_nSelection = nSel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxNotebook::OnEraseBackground(wxEraseEvent& event)
|
||||||
|
{
|
||||||
|
Default();
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user