class WXDLLEXPORT wxTextCtrl;
class WXDLLEXPORT wxButton;
class WXDLLEXPORT wxCheckBox;
-class WXDLLEXPORT wxChoice;
+class WXDLLEXPORT wxComboBox;
class WXDLLEXPORT wxStaticText;
class WXDLLEXPORT wxRadioBox;
class WXDLLEXPORT wxPrintSetupData;
virtual bool TransferDataFromWindow();
virtual bool TransferDataToWindow();
- wxChoice *CreatePaperTypeChoice(int* x, int* y);
+ wxComboBox *CreatePaperTypeChoice(int* x, int* y);
public:
wxRadioBox* m_orientationRadioBox;
wxTextCtrl* m_printerCommandText;
wxTextCtrl* m_printerOptionsText;
wxCheckBox* m_colourCheckBox;
- wxChoice* m_paperTypeChoice;
+ wxComboBox* m_paperTypeChoice;
#if wxUSE_POSTSCRIPT
wxPrintData m_printData;
void OnPrinter(wxCommandEvent& event);
- wxChoice *CreatePaperTypeChoice(int* x, int* y);
+ wxComboBox *CreatePaperTypeChoice(int* x, int* y);
wxPageSetupData& GetPageSetupData() { return m_pageData; }
public:
wxTextCtrl* m_marginTopText;
wxTextCtrl* m_marginRightText;
wxTextCtrl* m_marginBottomText;
- wxChoice* m_paperTypeChoice;
+ wxComboBox* m_paperTypeChoice;
static bool m_pageSetupDialogCancelled;
#include "wx/radiobox.h"
#include "wx/filedlg.h"
#include "wx/choice.h"
+ #include "wx/combobox.h"
#include <wx/intl.h>
#endif
return TRUE;
}
-wxChoice *wxGenericPrintSetupDialog::CreatePaperTypeChoice(int *x, int *y)
+wxComboBox *wxGenericPrintSetupDialog::CreatePaperTypeChoice(int *x, int *y)
{
/* Should not be necessary
if (!wxThePrintPaperDatabase)
int width = 250;
- wxChoice *choice = new wxChoice(this, wxPRINTID_PAPERSIZE, wxPoint(*x, *y), wxSize(width, -1), n,
+ wxComboBox *choice = new wxComboBox(this, wxPRINTID_PAPERSIZE,
+ _("Paper Size"),
+ wxPoint(*x, *y), wxSize(width, -1), n,
choices);
// SetFont(thisFont);
return TRUE;
}
-wxChoice *wxGenericPageSetupDialog::CreatePaperTypeChoice(int *x, int *y)
+wxComboBox *wxGenericPageSetupDialog::CreatePaperTypeChoice(int *x, int *y)
{
/*
if (!wxThePrintPaperDatabase)
(void) new wxStaticText(this, wxPRINTID_STATIC, _("Paper size"), wxPoint(*x, *y));
*y += 25;
- wxChoice *choice = new wxChoice(this, wxPRINTID_PAPERSIZE, wxPoint(*x, *y), wxSize(300, -1), n,
+ wxComboBox *choice = new wxComboBox(this, wxPRINTID_PAPERSIZE,
+ _("Paper Size"),
+ wxPoint(*x, *y), wxSize(300, -1), n,
choices);
*y += 35;
delete[] choices;