Fixed SetSelection, GetSelection for Portrait/Landscape selection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2065,7 +2065,7 @@ wxDialog(parent, -1, title, pos, size, style)
|
|||||||
|
|
||||||
wxRadioBox *radio0 = new wxRadioBox(this, wxID_PRINTER_ORIENTATION, "Orientation: ", wxPoint(5, yPos), wxSize(-1,-1),
|
wxRadioBox *radio0 = new wxRadioBox(this, wxID_PRINTER_ORIENTATION, "Orientation: ", wxPoint(5, yPos), wxSize(-1,-1),
|
||||||
2,orientation,2,0);
|
2,orientation,2,0);
|
||||||
radio0->SetSelection((int)wxThePrintSetupData->GetPrinterOrientation());
|
radio0->SetSelection((int)wxThePrintSetupData->GetPrinterOrientation() - 1);
|
||||||
|
|
||||||
// @@@ Configuration hook
|
// @@@ Configuration hook
|
||||||
if (wxThePrintSetupData->GetPrintPreviewCommand() == NULL)
|
if (wxThePrintSetupData->GetPrintPreviewCommand() == NULL)
|
||||||
@@ -2144,7 +2144,7 @@ int wxPostScriptPrintDialog::ShowModal (void)
|
|||||||
wxThePrintSetupData->SetPrinterCommand(WXSTRINGCAST text_prt->GetValue ());
|
wxThePrintSetupData->SetPrinterCommand(WXSTRINGCAST text_prt->GetValue ());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxThePrintSetupData->SetPrinterOrientation((radio0->GetSelection() == PS_LANDSCAPE ? PS_LANDSCAPE : PS_PORTRAIT));
|
wxThePrintSetupData->SetPrinterOrientation((radio0->GetSelection() == 1 ? PS_LANDSCAPE : PS_PORTRAIT));
|
||||||
|
|
||||||
// C++ wants this
|
// C++ wants this
|
||||||
switch ( radio1->GetSelection() ) {
|
switch ( radio1->GetSelection() ) {
|
||||||
|
Reference in New Issue
Block a user