- sizer = new wxBoxSizer(wxHORIZONTAL);
- sizer->Add(colourChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
- sizer->Add(pointSizeChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
- sizer->Add(underLineCheckBox, 0, wxALIGN_CENTER | wxLEFT, 10);
- topsizer->Add(sizer, 0, wxLEFT| wxTOP| wxRIGHT, 10);
+
+ wxSizer *topsizer, *sizer;
+ topsizer = new wxBoxSizer(wxVERTICAL);
+
+ if (!is_pda)
+ {
+ // 2 row design
+ sizer = new wxBoxSizer(wxHORIZONTAL);
+ sizer->Add(familyChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ sizer->Add(styleChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ sizer->Add(weightChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ topsizer->Add(sizer, 0, wxLEFT| wxTOP| wxRIGHT, 10);
+
+ sizer = new wxBoxSizer(wxHORIZONTAL);
+ sizer->Add(colourChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ sizer->Add(pointSizeChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ sizer->Add(underLineCheckBox, 0, wxALIGN_CENTER | wxLEFT, 10);
+ topsizer->Add(sizer, 0, wxLEFT| wxTOP| wxRIGHT, 10);
+ }
+ else
+ {
+ // 3 row design
+ sizer = new wxBoxSizer(wxHORIZONTAL);
+ sizer->Add(familyChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ sizer->Add(styleChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ topsizer->Add(sizer, 0, wxLEFT| wxTOP| wxRIGHT, 10);
+
+ sizer = new wxBoxSizer(wxHORIZONTAL);
+ sizer->Add(weightChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ sizer->Add(colourChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ topsizer->Add(sizer, 0, wxLEFT| wxTOP| wxRIGHT, 10);
+
+ sizer = new wxBoxSizer(wxHORIZONTAL);
+ sizer->Add(pointSizeChoice, 0, wxALIGN_CENTER | wxLEFT, 10);
+ sizer->Add(underLineCheckBox, 0, wxALIGN_CENTER | wxLEFT, 10);
+ topsizer->Add(sizer, 0, wxLEFT| wxTOP| wxRIGHT, 10);
+ }