added HasMultiplePages()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
88aaf4f5bf
commit
e71c530e03
@ -1400,6 +1400,18 @@ Returns {\tt true} if this window has the current mouse capture.
|
||||
Returns \texttt{true} if the window has the given \arg{flag} bit set.
|
||||
|
||||
|
||||
\membersection{wxWindow::HasMultiplePages}\label{wxwindowhasmultiplepages}
|
||||
|
||||
\constfunc{virtual bool}{HasMultiplePages}{\void}
|
||||
|
||||
This method should be overridden to return \texttt{true} if this window has
|
||||
multiple pages. All standard class with multiple pages such as
|
||||
\helpref{wxNotebook}{wxnotebook}, \helpref{wxListbook}{wxlistbook} and
|
||||
\helpref{wxTreebook}{wxtreebook} already override it to return \texttt{true}
|
||||
and user-defined classes with similar behaviour should do it as well to allow
|
||||
the library to handle such windows appropriately.
|
||||
|
||||
|
||||
\membersection{wxWindow::HasScrollbar}\label{wxwindowhasscrollbar}
|
||||
|
||||
\constfunc{virtual bool}{HasScrollbar}{\param{int }{orient}}
|
||||
|
@ -213,6 +213,10 @@ public:
|
||||
return wxNOT_FOUND;
|
||||
}
|
||||
|
||||
|
||||
// we do have multiple pages
|
||||
virtual bool HasMultiplePages() const { return true; }
|
||||
|
||||
protected:
|
||||
// Should we accept NULL page pointers in Add/InsertPage()?
|
||||
//
|
||||
|
@ -865,6 +865,10 @@ public:
|
||||
{ return DoPopupMenu(menu, x, y); }
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
// override this method to return true for controls having multiple pages
|
||||
virtual bool HasMultiplePages() const { return false; }
|
||||
|
||||
|
||||
// scrollbars
|
||||
// ----------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user