#include "wx/layout.h"
#include "wx/choice.h"
#include "wx/button.h"
+ #include "wx/bmpbuttn.h"
#include "wx/settings.h"
#include "wx/dcmemory.h"
#include "wx/dcclient.h"
void wxPreviewControlBar::CreateButtons()
{
- SetSize(0, 0, 400, 40);
-
SizerWithButtons sizer(this);
// Print button group (a single button).
if (m_printPreview->GetPrintoutForPrinting())
buttons |= wxPREVIEW_PRINT;
- m_controlBar = new wxPreviewControlBar(m_printPreview, buttons, this, wxPoint(0,0), wxSize(400, 40));
+ m_controlBar = new wxPreviewControlBar(m_printPreview, buttons, this);
m_controlBar->CreateButtons();
}
m_previewFailed = false;
m_currentPage = 1;
m_currentZoom = 70;
- m_topMargin = 40;
- m_leftMargin = 40;
+ m_topMargin =
+ m_leftMargin = 2*wxSizerFlags::GetDefaultBorder();
m_pageWidth = 0;
m_pageHeight = 0;
m_printingPrepared = false;