-
- okButton->SetDefault();
- okButton->SetFocus();
-
- xPos = 5;
- yPos += 35;
-
-#ifdef __WXMOTIF__
- yPos += 10;
-#endif
-
- m_paperTypeChoice = CreatePaperTypeChoice(&xPos, &yPos);
-
- xPos = 5;
-
- wxString *choices = new wxString[2];
- choices[0] = _("Portrait");
- choices[1] = _("Landscape");
- m_orientationRadioBox = new wxRadioBox(this, wxPRINTID_ORIENTATION, _("Orientation"),
- wxPoint(xPos, yPos), wxSize(-1, -1), 2, choices, 2);
- m_orientationRadioBox->SetSelection(0);
-
- xPos = 5;
- yPos += 60;
-
- int staticWidth = 110;
-#ifdef __WXMOTIF__
- staticWidth += 20;
-#endif
-
- int textWidth = 60;
- spacing = 10;
-
- (void) new wxStaticText(this, wxPRINTID_STATIC, _("Left margin (mm):"), wxPoint(xPos, yPos));
- xPos += staticWidth;
-
- m_marginLeftText = new wxTextCtrl(this, wxPRINTID_LEFTMARGIN, "", wxPoint(xPos, yPos), wxSize(textWidth, -1));
- xPos += textWidth + spacing;
-
- (void) new wxStaticText(this, wxPRINTID_STATIC, _("Right margin (mm):"), wxPoint(xPos, yPos));
- xPos += staticWidth;
-
- m_marginRightText = new wxTextCtrl(this, wxPRINTID_RIGHTMARGIN, "", wxPoint(xPos, yPos), wxSize(textWidth, -1));
- xPos += textWidth + spacing;
-
- yPos += 35;
- xPos = 5;
-
- (void) new wxStaticText(this, wxPRINTID_STATIC, _("Top margin (mm):"), wxPoint(xPos, yPos));
- xPos += staticWidth;
-
- m_marginTopText = new wxTextCtrl(this, wxPRINTID_TOPMARGIN, "", wxPoint(xPos, yPos), wxSize(textWidth, -1));
- xPos += textWidth + spacing;
-
- (void) new wxStaticText(this, wxPRINTID_STATIC, _("Bottom margin (mm):"), wxPoint(xPos, yPos));
- xPos += staticWidth;
-
- m_marginBottomText = new wxTextCtrl(this, wxPRINTID_BOTTOMMARGIN, "", wxPoint(xPos, yPos), wxSize(textWidth, -1));
-
- Fit();