git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31262
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class NotebookWidgetsPage : public WidgetsPage
{
public:
class NotebookWidgetsPage : public WidgetsPage
{
public:
- NotebookWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
+ NotebookWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
virtual ~NotebookWidgetsPage();
virtual wxControl *GetWidget() const { return m_notebook; }
virtual ~NotebookWidgetsPage();
virtual wxControl *GetWidget() const { return m_notebook; }
IMPLEMENT_WIDGETS_PAGE(NotebookWidgetsPage, _T("Notebook"));
IMPLEMENT_WIDGETS_PAGE(NotebookWidgetsPage, _T("Notebook"));
-NotebookWidgetsPage::NotebookWidgetsPage(wxNotebook *notebook,
+NotebookWidgetsPage::NotebookWidgetsPage(wxBookCtrl *book,
- : WidgetsPage(notebook)
{
imaglist->Add(wxBitmap(notebook_xpm));
{
imaglist->Add(wxBitmap(notebook_xpm));
void WidgetsFrame::OnSetFgCol(wxCommandEvent& WXUNUSED(event))
{
void WidgetsFrame::OnSetFgCol(wxCommandEvent& WXUNUSED(event))
{
wxColour col = wxGetColourFromUser(this, m_colFg);
if ( !col.Ok() )
return;
wxColour col = wxGetColourFromUser(this, m_colFg);
if ( !col.Ok() )
return;
WidgetsPage *page = wxStaticCast(m_book->GetCurrentPage(), WidgetsPage);
page->GetWidget()->SetForegroundColour(m_colFg);
page->GetWidget()->Refresh();
WidgetsPage *page = wxStaticCast(m_book->GetCurrentPage(), WidgetsPage);
page->GetWidget()->SetForegroundColour(m_colFg);
page->GetWidget()->Refresh();
+#else
+ wxLogMessage(_T("None colour dialog available in current build."));
+#endif
}
void WidgetsFrame::OnSetBgCol(wxCommandEvent& WXUNUSED(event))
{
}
void WidgetsFrame::OnSetBgCol(wxCommandEvent& WXUNUSED(event))
{
wxColour col = wxGetColourFromUser(this, m_colBg);
if ( !col.Ok() )
return;
wxColour col = wxGetColourFromUser(this, m_colBg);
if ( !col.Ok() )
return;
WidgetsPage *page = wxStaticCast(m_book->GetCurrentPage(), WidgetsPage);
page->GetWidget()->SetBackgroundColour(m_colBg);
page->GetWidget()->Refresh();
WidgetsPage *page = wxStaticCast(m_book->GetCurrentPage(), WidgetsPage);
page->GetWidget()->SetBackgroundColour(m_colBg);
page->GetWidget()->Refresh();
+#else
+ wxLogMessage(_T("None colour dialog available in current build."));
+#endif