wxScrolledWindow(parent, -1, pos, size, style, name)
{
m_printPreview = preview;
- SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
+#ifdef __WXMAC__
+ // The app workspace colour is always white, but we should have
+ // a contrast with the page.
+ wxSystemColour colourIndex = wxSYS_COLOUR_3DDKSHADOW;
+#else
+ wxSystemColour colourIndex = wxSYS_COLOUR_APPWORKSPACE;
+#endif
+ SetBackgroundColour(wxSystemSettings::GetColour(colourIndex));
SetScrollbars(15, 18, 100, 100);
}
// Responds to colour changes, and passes event on to children.
void wxPreviewCanvas::OnSysColourChanged(wxSysColourChangedEvent& event)
{
- SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
+#ifdef __WXMAC__
+ // The app workspace colour is always white, but we should have
+ // a contrast with the page.
+ wxSystemColour colourIndex = wxSYS_COLOUR_3DDKSHADOW;
+#else
+ wxSystemColour colourIndex = wxSYS_COLOUR_APPWORKSPACE;
+#endif
+ SetBackgroundColour(wxSystemSettings::GetColour(colourIndex));
Refresh();
// Propagate the event to the non-top-level children
EVT_CLOSE(wxPreviewFrame::OnCloseWindow)
END_EVENT_TABLE()
-wxPreviewFrame::wxPreviewFrame(wxPrintPreviewBase *preview, wxFrame *parent, const wxString& title,
+wxPreviewFrame::wxPreviewFrame(wxPrintPreviewBase *preview, wxWindow *parent, const wxString& title,
const wxPoint& pos, const wxSize& size, long style, const wxString& name):
wxFrame(parent, -1, title, pos, size, style, name)
{
m_printPreview = preview;
m_controlBar = NULL;
m_previewCanvas = NULL;
+
+ // Give the application icon
+#ifdef __WXMSW__
+ wxFrame* topFrame = wxDynamicCast(wxTheApp->GetTopWindow(), wxFrame);
+ if (topFrame)
+ SetIcon(topFrame->GetIcon());
+#endif
}
wxPreviewFrame::~wxPreviewFrame()