Default constructor.
\func{}{wxNotebook}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
- \param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = 0}, \param{const wxString\& }{name = "notebook"}}
+ \param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = 0}, \param{const wxString\& }{name = wxNotebookNameStr}}
Constructs a notebook control.
\membersection{wxNotebook::Create}\label{wxnotebookcreate}
\func{bool}{Create}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
- \param{const wxSize\&}{ size}, \param{long}{ style = 0}, \param{const wxString\& }{name = "notebook"}}
+ \param{const wxSize\&}{ size}, \param{long}{ style = 0}, \param{const wxString\& }{name = wxNotebookNameStr}}
Creates a notebook control. See \helpref{wxNotebook::wxNotebook}{wxnotebookctor} for a description
of the parameters.
\func{int}{HitTest}{\param{const wxPoint\&}{ pt}, \param{long}{ *flags = {\tt NULL}}}
-Returns the index of the tab at the specified position or {\tt wxNOT\_FOUND}
+Returns the index of the tab at the specified position or {\tt wxNOT\_FOUND}
if none. If {\it flags} parameter is non {\tt NULL}, the position of the point
inside the tab is returned as well.
// Created: 2004/04/08
// RCS-ID: $Id$
// Copyright: (c) 2004 David Elliott
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_COCOA_NOTEBOOK_H__
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxNOTEBOOK_NAME)
+ const wxString& name = wxNotebookNameStr)
{
Create(parent, winid, pos, size, style, name);
}
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxNOTEBOOK_NAME);
+ const wxString& name = wxNotebookNameStr);
virtual ~wxNotebook();
// ------------------------------------------------------------------------
bool InsertPage( size_t position,
wxNotebookPage *win,
const wxString& strText,
- bool bSelect = FALSE,
+ bool bSelect = false,
int imageId = -1 );
protected:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// Create() function
bool Create(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// dtor
~wxNotebook();
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// Create() function
bool Create(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// dtor
virtual ~wxNotebook();
bool InsertPage( size_t position,
wxNotebookPage *win,
const wxString& strText,
- bool bSelect = FALSE,
+ bool bSelect = false,
int imageId = -1 );
// handler for tab navigation
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
+
// implementation
// --------------
// selection internally instead of querying the notebook for it
int m_selection;
- // flag set to TRUE while we're inside "switch_page" callback
+ // flag set to true while we're inside "switch_page" callback
bool m_inSwitchPage;
protected:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// Create() function
bool Create(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// dtor
virtual ~wxNotebook();
bool InsertPage( size_t position,
wxNotebookPage *win,
const wxString& strText,
- bool bSelect = FALSE,
+ bool bSelect = false,
int imageId = -1 );
// handler for tab navigation
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
+
// implementation
// --------------
// selection internally instead of querying the notebook for it
int m_selection;
- // flag set to TRUE while we're inside "switch_page" callback
+ // flag set to true while we're inside "switch_page" callback
bool m_inSwitchPage;
protected:
wxNotebook();
// the same arguments as for wxControl (@@@ any special styles?)
wxNotebook(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// Create() function
bool Create(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxT("notebook"));
+ const wxString& name = wxNotebookNameStr);
// dtor
~wxNotebook();
virtual void SetPadding(const wxSize& padding);
// sets the size of the tabs (assumes all tabs are the same size)
virtual void SetTabSize(const wxSize& sz);
-
+
// calculate size for wxNotebookSizer
wxSize CalcSizeFromPage(const wxSize& sizePage) const;
wxRect GetPageRect() const ;
int GetPageCount() const;
// cycle thru the tabs
- void AdvanceSelection(bool bForward = TRUE);
+ void AdvanceSelection(bool bForward = true);
// currently it's always 1 because wxGTK doesn't support multi-row
bool InsertPage(size_t nPage,
wxNotebookPage *pPage,
const wxString& strText,
- bool bSelect = FALSE,
+ bool bSelect = false,
int imageId = -1);
/*
// get the panel which represents the given page
// --------------
#if wxUSE_CONSTRAINTS
- virtual void SetConstraintSizes(bool recurse = TRUE);
+ virtual void SetConstraintSizes(bool recurse = true);
virtual bool DoPhase(int nPhase);
#endif
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxNOTEBOOK_NAME);
+ const wxString& name = wxNotebookNameStr);
// Create() function
bool Create(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxNOTEBOOK_NAME);
+ const wxString& name = wxNotebookNameStr);
virtual ~wxNotebook();
// accessors
typedef wxWindow wxNotebookPage; // so far, any window can be a page
-#define wxNOTEBOOK_NAME _T("notebook")
+WXDLLEXPORT_DATA(extern const wxChar*) wxNotebookNameStr;
+
+#if WXWIN_COMPATIBILITY_2_4
+ #define wxNOTEBOOK_NAME wxNotebookNameStr
+#endif
// ----------------------------------------------------------------------------
// wxNotebookBase: define wxNotebook interface
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxNOTEBOOK_NAME) ;
+ const wxString& name = wxNotebookNameStr) ;
// wxNotebook-specific additions to wxBookCtrlBase interface
// ---------------------------------------------------------
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = 0
- ,const wxString& rsName = "notebook"
+ ,const wxString& rsName = wxNotebookNameStr
);
bool Create( wxWindow* pParent
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = 0
- ,const wxString& rsName = "notebook"
+ ,const wxString& rsName = wxNotebookNameStr
);
//
//
bool AddPage( wxNotebookPage* pPage
,const wxString& rsStrText
- ,bool bSelect = FALSE
+ ,bool bSelect = false
,int nImageId = -1
);
bool InsertPage( size_t nPage
,wxNotebookPage* pPage
,const wxString& rsStrText
- ,bool bSelect = FALSE
+ ,bool bSelect = false
,int nImageId = -1
);
,WXWORD wPos
,WXHWND hControl
);
- virtual void SetConstraintSizes(bool bRecurse = TRUE);
+ virtual void SetConstraintSizes(bool bRecurse = true);
virtual bool DoPhase(int nPhase);
protected:
/////////////////////////////////////////////////////////////////////////////
// Name: palmos/notebook.h
-// Purpose: MSW/GTK compatible notebook (a.k.a. property sheet)
+// Purpose: notebook interface (a.k.a. property sheet)
// Author: William Osborne
// Modified by:
// Created: 10/13/04
-// RCS-ID: $Id:
+// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
wxNotebookPageInfo() { m_page = NULL ; m_imageId = -1 ; m_selected = false ; }
virtual ~wxNotebookPageInfo() { }
- void Create( wxNotebookPage *page , const wxString &text , bool selected , int imageId )
+ void Create( wxNotebookPage *page , const wxString &text , bool selected , int imageId )
{ m_page = page ; m_text = text ; m_selected = selected ; m_imageId = imageId ; }
wxNotebookPage* GetPage() const { return m_page ; }
wxString GetText() const { return m_text ; }
class WXDLLEXPORT wxNotebook : public wxNotebookBase
{
public:
- // ctors
- // -----
+ // ctors
+ // -----
+
// default for dynamic class
- wxNotebook();
+ wxNotebook();
+
// the same arguments as for wxControl (@@@ any special styles?)
- wxNotebook(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxNOTEBOOK_NAME);
+ wxNotebook(wxWindow *parent,
+ wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxNotebookNameStr);
+
// Create() function
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxNOTEBOOK_NAME);
-
- // accessors
- // ---------
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxNotebookNameStr);
+
+ // accessors
+ // ---------
+
// get number of pages in the dialog
- virtual size_t GetPageCount() const;
+ virtual size_t GetPageCount() const;
// set the currently selected page, return the index of the previously
// selected one (or -1 on error)
// NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events
- int SetSelection(size_t nPage);
+ int SetSelection(size_t nPage);
+
// get the currently selected page
- int GetSelection() const { return m_nSelection; }
+ int GetSelection() const { return m_nSelection; }
// set/get the title of a page
- bool SetPageText(size_t nPage, const wxString& strText);
- wxString GetPageText(size_t nPage) const;
-
- // image list stuff: each page may have an image associated with it. All
- // the images belong to an image list, so you have to
- // 1) create an image list
- // 2) associate it with the notebook
- // 3) set for each page it's image
+ bool SetPageText(size_t nPage, const wxString& strText);
+ wxString GetPageText(size_t nPage) const;
+
+ // image list stuff: each page may have an image associated with it. All
+ // the images belong to an image list, so you have to
+ // 1) create an image list
+ // 2) associate it with the notebook
+ // 3) set for each page it's image
// associate image list with a control
- void SetImageList(wxImageList* imageList);
+ void SetImageList(wxImageList* imageList);
// sets/returns item's image index in the current image list
- int GetPageImage(size_t nPage) const;
- bool SetPageImage(size_t nPage, int nImage);
+ int GetPageImage(size_t nPage) const;
+ bool SetPageImage(size_t nPage, int nImage);
// currently it's always 1 because wxGTK doesn't support multi-row
// tab controls
- int GetRowCount() const;
+ int GetRowCount() const;
- // control the appearance of the notebook pages
+ // control the appearance of the notebook pages
// set the size (the same for all pages)
- void SetPageSize(const wxSize& size);
+ void SetPageSize(const wxSize& size);
// set the padding between tabs (in pixels)
- void SetPadding(const wxSize& padding);
+ void SetPadding(const wxSize& padding);
- // Windows only: attempts to get colour for UX theme page background
- wxColour GetThemeBackgroundColour();
-
- // operations
- // ----------
+ // operations
+ // ----------
// remove all pages
- bool DeleteAllPages();
+ bool DeleteAllPages();
// inserts a new page to the notebook (it will be deleted ny the notebook,
// don't delete it yourself). If bSelect, this page becomes active.
- bool InsertPage(size_t nPage,
- wxNotebookPage *pPage,
- const wxString& strText,
- bool bSelect = FALSE,
- int imageId = -1);
+ bool InsertPage(size_t nPage,
+ wxNotebookPage *pPage,
+ const wxString& strText,
+ bool bSelect = false,
+ int imageId = -1);
- void AddPageInfo( wxNotebookPageInfo* info ) { AddPage( info->GetPage() , info->GetText() , info->GetSelected() , info->GetImageId() ) ; }
- const wxNotebookPageInfoList& GetPageInfos() const ;
+ void AddPageInfo( wxNotebookPageInfo* info ) { AddPage( info->GetPage() , info->GetText() , info->GetSelected() , info->GetImageId() ) ; }
+ const wxNotebookPageInfoList& GetPageInfos() const ;
// Windows-only at present. Also, you must use the wxNB_FIXEDWIDTH
// style.
- void SetTabSize(const wxSize& sz);
-
- // Windows only: attempts to apply the UX theme page background to this page
- void ApplyThemeBackground(wxWindow* window, const wxColour& colour);
+ void SetTabSize(const wxSize& sz);
// hit test
- virtual int HitTest(const wxPoint& pt, long *flags = NULL) const;
+ virtual int HitTest(const wxPoint& pt, long *flags = NULL) const;
// calculate the size of the notebook from the size of its page
- virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
-
- // callbacks
- // ---------
- void OnSize(wxSizeEvent& event);
- void OnSelChange(wxNotebookEvent& event);
- void OnNavigationKey(wxNavigationKeyEvent& event);
+ virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
- // base class virtuals
- // -------------------
+ // callbacks
+ // ---------
+ void OnSize(wxSizeEvent& event);
+ void OnSelChange(wxNotebookEvent& event);
+ void OnNavigationKey(wxNavigationKeyEvent& event);
- virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
- virtual bool MSWOnScroll(int orientation, WXWORD nSBCode,
- WXWORD pos, WXHWND control);
- virtual bool MSWTranslateMessage(WXMSG *wxmsg);
+ // base class virtuals
+ // -------------------
#if wxUSE_CONSTRAINTS
- virtual void SetConstraintSizes(bool recurse = TRUE);
- virtual bool DoPhase(int nPhase);
+ virtual void SetConstraintSizes(bool recurse = true);
+ virtual bool DoPhase(int nPhase);
#endif // wxUSE_CONSTRAINTS
protected:
- // common part of all ctors
- void Init();
+ // common part of all ctors
+ void Init();
- // translate wxWin styles to the Windows ones
- virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
+ // remove one page from the notebook, without deleting
+ virtual wxNotebookPage *DoRemovePage(size_t nPage);
- // remove one page from the notebook, without deleting
- virtual wxNotebookPage *DoRemovePage(size_t nPage);
-
- // set the size of the given page to fit in the notebook
- void AdjustPageSize(wxNotebookPage *page);
-
- // override WndProc.
-#if wxUSE_UXTHEME
- virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-#endif
+ // set the size of the given page to fit in the notebook
+ void AdjustPageSize(wxNotebookPage *page);
- // the current selection (-1 if none)
- int m_nSelection;
+ // the current selection (-1 if none)
+ int m_nSelection;
- wxNotebookPageInfoList m_pageInfos ;
+ wxNotebookPageInfoList m_pageInfos ;
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxNotebook)
- DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS_NO_COPY(wxNotebook)
+ DECLARE_EVENT_TABLE()
};
#endif // wxUSE_NOTEBOOK
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxNOTEBOOK_NAME)
+ const wxString& name = wxNotebookNameStr)
{
Init();
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxString& name = wxNOTEBOOK_NAME);
+ const wxString& name = wxNotebookNameStr);
// dtor
virtual ~wxNotebook();
// Default window names
WXDLLEXPORT_DATA(const wxChar *) wxControlNameStr = wxT("control");
WXDLLEXPORT_DATA(const wxChar *) wxButtonNameStr = wxT("button");
+WXDLLEXPORT_DATA(const wxChar *) wxButtonBarNameStr = wxT("buttonbar");
WXDLLEXPORT_DATA(const wxChar *) wxCanvasNameStr = wxT("canvas");
WXDLLEXPORT_DATA(const wxChar *) wxCheckBoxNameStr = wxT("check");
WXDLLEXPORT_DATA(const wxChar *) wxChoiceNameStr = wxT("choice");
WXDLLEXPORT_DATA(const wxChar *) wxStaticTextNameStr = wxT("message");
WXDLLEXPORT_DATA(const wxChar *) wxStaticBitmapNameStr = wxT("message");
WXDLLEXPORT_DATA(const wxChar *) wxMultiTextNameStr = wxT("multitext");
+WXDLLEXPORT_DATA(const wxChar *) wxNotebookNameStr = wxT("notebook");
WXDLLEXPORT_DATA(const wxChar *) wxPanelNameStr = wxT("panel");
WXDLLEXPORT_DATA(const wxChar *) wxRadioBoxNameStr = wxT("radioBox");
WXDLLEXPORT_DATA(const wxChar *) wxRadioButtonNameStr = wxT("radioButton");
WXDLLEXPORT_DATA(const wxChar *) wxScrollBarNameStr = wxT("scrollBar");
WXDLLEXPORT_DATA(const wxChar *) wxSliderNameStr = wxT("slider");
WXDLLEXPORT_DATA(const wxChar *) wxStaticNameStr = wxT("static");
+WXDLLEXPORT_DATA(const wxChar *) wxStatusLineNameStr = wxT("status_line");
WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlWindowNameStr = wxT("textWindow");
WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlNameStr = wxT("text");
-WXDLLEXPORT_DATA(const wxChar *) wxVirtListBoxNameStr = wxT("virtListBox");
-WXDLLEXPORT_DATA(const wxChar *) wxButtonBarNameStr = wxT("buttonbar");
+WXDLLEXPORT_DATA(const wxChar *) wxTreeCtrlNameStr = wxT("treeCtrl");
WXDLLEXPORT_DATA(const wxChar *) wxEnhDialogNameStr = wxT("Shell");
WXDLLEXPORT_DATA(const wxChar *) wxToolBarNameStr = wxT("toolbar");
-WXDLLEXPORT_DATA(const wxChar *) wxStatusLineNameStr = wxT("status_line");
+WXDLLEXPORT_DATA(const wxChar *) wxVirtListBoxNameStr = wxT("virtListBox");
+
+// Default messages
WXDLLEXPORT_DATA(const wxChar *) wxGetTextFromUserPromptStr = wxT("Input Text");
WXDLLEXPORT_DATA(const wxChar *) wxGetPasswordFromUserPromptStr = wxT("Enter Password");
WXDLLEXPORT_DATA(const wxChar *) wxMessageBoxCaptionStr = wxT("Message");
WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorPromptStr = wxT("Select a file");
+
+// Other default strings
WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorDefaultWildcardStr =
#if defined(__WXMSW__) || defined(__WXOS2__)
wxT("*.*")
wxT("*")
#endif
;
-WXDLLEXPORT_DATA(const wxChar *) wxTreeCtrlNameStr = wxT("treeCtrl");
WXDLLEXPORT_DATA(const wxChar *) wxDirDialogNameStr = wxT("wxDirCtrl");
WXDLLEXPORT_DATA(const wxChar *) wxDirDialogDefaultFolderStr = wxT("/");
#include "wx/string.h"
#endif // WX_PRECOMP
-#include "wx/log.h"
-#include "wx/imaglist.h"
-#include "wx/event.h"
-#include "wx/control.h"
-#include "wx/notebook.h"
-#include "wx/app.h"
-
-#include "wx/palmos/private.h"
-
-#include "wx/palmos/winundef.h"
-
-#if wxUSE_UXTHEME
-#include "wx/palmos/uxtheme.h"
-
-#include "wx/radiobut.h"
-#include "wx/radiobox.h"
-#include "wx/checkbox.h"
-#include "wx/bmpbuttn.h"
-#include "wx/statline.h"
-#include "wx/statbox.h"
-#include "wx/stattext.h"
-#include "wx/slider.h"
-#include "wx/scrolwin.h"
-#include "wx/panel.h"
-#endif
-
// ----------------------------------------------------------------------------
// macros
// ----------------------------------------------------------------------------
// check that the page index is valid
#define IS_VALID_PAGE(nPage) ((nPage) < GetPageCount())
-// hide the ugly cast
-#define m_hwnd (HWND)GetHWND()
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// This is a work-around for missing defines in gcc-2.95 headers
-#ifndef TCS_RIGHT
- #define TCS_RIGHT 0x0002
-#endif
-
-#ifndef TCS_VERTICAL
- #define TCS_VERTICAL 0x0080
-#endif
-
-#ifndef TCS_BOTTOM
- #define TCS_BOTTOM TCS_RIGHT
-#endif
-
// ----------------------------------------------------------------------------
// event table
// ----------------------------------------------------------------------------
return false;
}
-WXDWORD wxNotebook::MSWGetStyle(long style, WXDWORD *exstyle) const
-{
- return 0;
-}
-
// ----------------------------------------------------------------------------
// wxNotebook accessors
// ----------------------------------------------------------------------------
size_t wxNotebook::GetPageCount() const
{
- return 0;
+ return 0;
}
int wxNotebook::GetRowCount() const
{
- return 0;
+ return 0;
}
int wxNotebook::SetSelection(size_t nPage)
wxString wxNotebook::GetPageText(size_t nPage) const
{
- wxString str;
-
- return str;
+ return wxEmptyString;
}
int wxNotebook::GetPageImage(size_t nPage) const
{
- return -1;
+ return -1;
}
bool wxNotebook::SetPageImage(size_t nPage, int nImage)
// remove all pages
bool wxNotebook::DeleteAllPages()
{
- return true;
+ return true;
}
// same as AddPage() but does it at given position
{
}
-bool wxNotebook::MSWTranslateMessage(WXMSG *wxmsg)
-{
- return false;
-}
-
void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
{
}
#endif // wxUSE_CONSTRAINTS
-// ----------------------------------------------------------------------------
-// wxNotebook Windows message handlers
-// ----------------------------------------------------------------------------
-
-bool wxNotebook::MSWOnScroll(int orientation, WXWORD nSBCode,
- WXWORD pos, WXHWND control)
-{
- return false;
-}
-
-bool wxNotebook::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM* result)
-{
- return false;
-}
-
-// Windows only: attempts to get colour for UX theme page background
-wxColour wxNotebook::GetThemeBackgroundColour()
-{
- return wxColour;
-}
-
-// Windows only: attempts to apply the UX theme page background to this page
-#if wxUSE_UXTHEME
-void wxNotebook::ApplyThemeBackground(wxWindow* window, const wxColour& colour)
-#else
-void wxNotebook::ApplyThemeBackground(wxWindow*, const wxColour&)
-#endif
-{
-}
-
-#if wxUSE_UXTHEME
-WXLRESULT wxNotebook::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
-{
- return 0;
-}
-#endif // #if wxUSE_UXTHEME
-
#endif // wxUSE_NOTEBOOK