#include "printing.h"
-#ifndef __WXMSW__
- #include "mondrian.xpm"
+#if !defined(__WXMSW__) && !defined(__WXPM__)
+ #include "../sample.xpm"
#endif
// Global print data, to remember settings during the session
frame->Centre(wxBOTH);
frame->Show();
- SetTopWindow(frame);
-
return true;
}
str.Printf( wxT("---- Text at angle %d ----"), i );
dc.DrawRotatedText( str, 100, 300, i );
- wxIcon my_icon = wxICON(mondrian);
+ wxIcon my_icon = wxICON(sample);
dc.DrawIcon( my_icon, 100, 100);
// draw some text
wxString text("Text by wxGraphicsContext");
- gc->SetFont( m_testFont, *wxBLUE );
- gc->DrawText(text, 50.0, 50.0);
+ gc->SetFont( m_testFont, *wxBLACK );
+ gc->DrawText(text, 25.0, 60.0);
// draw rectangle around the text
double w, h, d, el;
gc->GetTextExtent(text, &w, &h, &d, &el);
- gc->SetPen( *wxBLUE_PEN );
- gc->DrawRectangle(50.0, 50.0, w, h);
+ gc->SetPen( *wxBLACK_PEN );
+ gc->DrawRectangle(25.0, 60.0, w, h);
delete gc;
}
#endif // wxUSE_STATUSBAR
// Load icon and bitmap
- SetIcon( wxICON( mondrian) );
+ SetIcon( wxICON( sample) );
// Make a menubar
wxMenu *file_menu = new wxMenu;