X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9c0df38e7bdf9dcc527833c6ed7ae30155c24cc..366e420233bc8590ef2fc333ba627267e6b81ca1:/include/wx/listbook.h diff --git a/include/wx/listbook.h b/include/wx/listbook.h index 1c4c5ae513..fe6b1ba3bb 100644 --- a/include/wx/listbook.h +++ b/include/wx/listbook.h @@ -20,11 +20,24 @@ #if wxUSE_LISTBOOK +// this can be defined to put a static line as separator between the list +// control and the page area; but I think it finally looks better without it so +// it is not enabled by default +//#define wxUSE_LINE_IN_LISTBOOK 1 + +#if !wxUSE_STATLINE + #undef wxUSE_LINE_IN_LISTBOOK + #define wxUSE_LINE_IN_LISTBOOK 0 +#endif + #include "wx/bookctrl.h" class WXDLLEXPORT wxListView; class WXDLLEXPORT wxListEvent; -class WXDLLEXPORT wxStaticLine;; + +#if wxUSE_LINE_IN_LISTBOOK +class WXDLLEXPORT wxStaticLine; +#endif // wxUSE_LINE_IN_LISTBOOK // ---------------------------------------------------------------------------- // constants @@ -117,8 +130,10 @@ private: // the list control we use for showing the pages index wxListView *m_list; +#if wxUSE_LINE_IN_LISTBOOK // the line separating it from the page area wxStaticLine *m_line; +#endif // wxUSE_LINE_IN_LISTBOOK // the currently selected page or wxNOT_FOUND if none int m_selection; @@ -155,7 +170,7 @@ typedef void (wxEvtHandler::*wxListbookEventFunction)(wxListbookEvent&); wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, \ id, \ -1, \ - (wxObjectEventFunction)(wxEventFunction)(wxListbookEventFunction) &fn, \ + (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \ NULL \ ), @@ -164,7 +179,7 @@ typedef void (wxEvtHandler::*wxListbookEventFunction)(wxListbookEvent&); wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, \ id, \ -1, \ - (wxObjectEventFunction)(wxEventFunction)(wxListbookEventFunction) &fn, \ + (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \ NULL \ ),