- rangeRadioBox = new wxRadioBox(this, wxPRINTID_RANGE, _("Print Range"),
- wxPoint(5, yPos), wxSize(-1, -1), 2, choices, 2);
- rangeRadioBox->SetSelection(1);
-
- yPos += 60;
- xPos = 5;
- int staticWidth = 45;
- int textWidth = 40;
- spacing = 10;
-
- (void) new wxStaticText(this, wxPRINTID_STATIC, _("From:"), wxPoint(xPos, yPos));
- xPos += staticWidth;
-
- fromText = new wxTextCtrl(this, wxPRINTID_FROM, "", wxPoint(xPos, yPos), wxSize(textWidth, -1));
- xPos += spacing + textWidth;
-
- (void) new wxStaticText(this, wxPRINTID_STATIC, _("To:"), wxPoint(xPos, yPos));
- xPos += staticWidth;
-
- toText = new wxTextCtrl(this, wxPRINTID_TO, "", wxPoint(xPos, yPos), wxSize(textWidth, -1));
- xPos += spacing + textWidth;
-
- (void) new wxStaticText(this, wxPRINTID_STATIC, _("Copies:"), wxPoint(xPos, yPos));
- xPos += spacing + staticWidth;
+ if(printData.GetFromPage() != 0)
+ {
+ rangeRadioBox = new wxRadioBox(this, wxPRINTID_RANGE, _("Print Range"),
+ wxPoint(5, 80), wxSize(-1, -1), 2, choices, 1, wxRA_VERTICAL);
+ rangeRadioBox->SetSelection(1);
+ }
+
+ if(printData.GetFromPage() != 0)
+ {
+ (void) new wxStaticText(this, wxPRINTID_STATIC, _("From:"), wxPoint(5, 135));