#include <wx/toolbar.h>
#include <wx/svg/dcsvg.h>
-#ifndef __WXMSW__
#include "mondrian.xpm"
-#endif
+
#include "bitmaps/new.xpm"
#include "bitmaps/save.xpm"
#include "bitmaps/help.xpm"
event.Skip();
return ;
}
- if ( m_children.Number () < 1 )
+ if ( m_children.GetCount () < 1 )
{
event.Skip();
return ;
while ( pNode )
{
pNext = pNode -> GetNext ();
- pChild = (MyChild*) pNode -> Data ();
+ pChild = (MyChild*) pNode -> GetData ();
if (pChild -> Close ())
{
delete pNode ;
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
{
- (void)wxMessageBox(wxT("wxWindows 2.0 SVG 1.0 Test\n"
- "Author: Chris Elliott (c) 2002\n"
- "Usage: svg.exe \nClick File | New to show tests\n\n"), wxT("About SVG Test"));
+ (void)wxMessageBox(wxT("wxWindows 2.0 SVG 1.0 Test\n")
+ wxT("Author: Chris Elliott (c) 2002\n")
+ wxT("Usage: svg.exe \nClick File | New to show tests\n\n"), wxT("About SVG Test"));
}
wxPoint(-1, -1), wxSize(-1, -1),
wxDEFAULT_FRAME_STYLE ) ) ;
- subframe = (MyChild *) m_children.GetLast() -> Data ();
+ subframe = (MyChild *) m_children.GetLast() -> GetData ();
wxString title;
title.Printf(wxT("SVG Test Window %d"), nWinCreated );
// counts number of children previously, even if now closed
}
-void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event))
+void MyFrame::OnSize(wxSizeEvent& event)
{
int w, h;
GetClientSize(&w, &h);
GetClientWindow()->SetSize(0, 0, w, h);
+ event.Skip();
}
case 3 :
// four arcs start and end points, center
dc.SetBrush(*wxGREEN_BRUSH);
- dc.DrawArc ( 200,300, 370,230, 300.0,300.0 );
+ dc.DrawArc ( 200,300, 370,230, 300,300 );
dc.SetBrush(*wxBLUE_BRUSH);
- dc.DrawArc ( 270-50, 270-86, 270-86, 270-50, 270.0,270.0 );
+ dc.DrawArc ( 270-50, 270-86, 270-86, 270-50, 270,270 );
dc.SetDeviceOrigin(-10,-10);
- dc.DrawArc ( 270-50, 270-86, 270-86, 270-50, 270.0,270.0 );
+ dc.DrawArc ( 270-50, 270-86, 270-86, 270-50, 270,270 );
dc.SetDeviceOrigin(0,0);
wP.SetColour (_T("CADET BLUE"));
dc.SetPen(wP);
- dc.DrawArc ( 75,125, 110, 40, 75.0, 75.0 );
+ dc.DrawArc ( 75,125, 110, 40, 75, 75 );
wP.SetColour (_T("SALMON"));
dc.SetPen(wP);
break ;
case 6:
- dc.DrawIcon( wxICON(mondrian), 10, 10 );
- dc.DrawBitmap ( wxBITMAP (svgbitmap), 50,15);
+ dc.DrawIcon( wxIcon(mondrian_xpm), 10, 10 );
+ dc.DrawBitmap ( wxBitmap(svgbitmap_xpm), 50,15);
s = wxT("Icon and Bitmap ");
break ;