#include <wx/string.h>
#include <wx/log.h>
-#include <wx/imaglist.h>
+#include <wx/settings.h>
+#include <wx/generic/imaglist.h>
#include <wx/generic/notebook.h>
#include <wx/dcclient.h>
EVT_MOUSE_EVENTS(wxNotebook::OnMouseEvent)
EVT_SET_FOCUS(wxNotebook::OnSetFocus)
EVT_NAVIGATION_KEY(wxNotebook::OnNavigationKey)
- EVT_IDLE(wxNotebook::OnIdle)
+// EVT_IDLE(wxNotebook::OnIdle)
END_EVENT_TABLE()
IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl)
m_windowId = id == -1 ? NewControlId() : id;
// It's like a normal window...
- if (!wxWindow::Create(parent, id, pos, size, style, name))
+ if (!wxWindow::Create(parent, id, pos, size, style|wxNO_BORDER, name))
return FALSE;
+ SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
+
SetTabView(new wxNotebookTabView(this));
return TRUE;
if (!m_notebook)
return;
+// Because of name truncation!
+#if defined(__BORLANDC__) && defined(__WIN16__)
+ wxNotebookEvent event(wxEVT_COMMAND_NB_PAGE_CHANGED, m_notebook->GetId());
+#else
wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, m_notebook->GetId());
+#endif
// Translate from wxTabView's ids (which aren't position-dependent)
// to wxNotebook's (which are).