+
+#if wxUSE_DISPLAY
+ wxChoice *choiceModes = new wxChoice(page, Display_ChangeMode);
+ const wxArrayVideoModes modes = display.GetModes();
+ const size_t count = modes.GetCount();
+ for ( size_t nMode = 0; nMode < count; nMode++ )
+ {
+ const wxVideoMode& mode = modes[nMode];
+
+ choiceModes->Append(VideoModeToText(mode),
+ new MyVideoModeClientData(mode));
+ }
+
+ sizer->Add(new wxStaticText(page, wxID_ANY, _T("&Modes: ")));
+ sizer->Add(choiceModes, 0, wxEXPAND);
+
+ sizer->Add(new wxStaticText(page, wxID_ANY, _T("Current: ")));
+ sizer->Add(new wxStaticText(page, Display_CurrentMode,
+ VideoModeToText(display.GetCurrentMode())));
+
+ // add it to another sizer to have borders around it and button below
+ sizerTop->Add(new wxButton(page, Display_ResetMode, _T("&Reset mode")),
+ 0, wxALL | wxCENTRE, 5);
+#endif // wxUSE_DISPLAY
+