#if wxUSE_RICHTEXT
#include "wx/propdlg.h"
+#include "wx/bookctrl.h"
+
#if wxUSE_HTML
#include "wx/htmllbox.h"
#endif
#include "wx/richtext/richtextbuffer.h"
#include "wx/richtext/richtextstyles.h"
-class WXDLLEXPORT wxNotebookEvent;
class WXDLLIMPEXP_RICHTEXT wxRichTextFormattingDialog;
class WXDLLIMPEXP_CORE wxImageList;
/// Apply the styles when a different tab is selected, so the previews are
/// up to date
- void OnTabChanged(wxNotebookEvent& event);
+ void OnTabChanged(wxBookCtrlEvent& event);
/// Set/get image list
void SetImageList(wxImageList* imageList) { m_imageList = imageList; }
IMPLEMENT_CLASS(wxRichTextFormattingDialog, wxPropertySheetDialog)
BEGIN_EVENT_TABLE(wxRichTextFormattingDialog, wxPropertySheetDialog)
- EVT_NOTEBOOK_PAGE_CHANGED(-1, wxRichTextFormattingDialog::OnTabChanged)
+ EVT_BOOKCTRL_PAGE_CHANGED(wxID_ANY, wxRichTextFormattingDialog::OnTabChanged)
END_EVENT_TABLE()
wxRichTextFormattingDialogFactory* wxRichTextFormattingDialog::ms_FormattingDialogFactory = NULL;
/// Apply the styles when a different tab is selected, so the previews are
/// up to date
-void wxRichTextFormattingDialog::OnTabChanged(wxNotebookEvent& event)
+void wxRichTextFormattingDialog::OnTabChanged(wxBookCtrlEvent& event)
{
if (GetBookCtrl() != event.GetEventObject())
{
}
}
}
-
+
return true;
}
wxColourData data;
data.SetChooseFull(true);
data.SetColour(m_colour);
+#if wxUSE_COLOURDLG
wxColourDialog *dialog = new wxColourDialog(parent, &data);
// Crashes on wxMac (no m_peer)
#ifndef __WXMAC__
SetBackgroundColour(m_colour);
}
dialog->Destroy();
+#endif // wxUSE_COLOURDLG
Refresh();
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
#endif
// wxUSE_RICHTEXT
-