- sizer->Add(new wxStaticText(page, -1, _T("Name: ")));
- sizer->Add(new wxStaticText(page, -1, display.GetName()));
+ sizer->Add(new wxStaticText(page, wxID_ANY, _T("Name: ")));
+ sizer->Add(new wxStaticText(page, wxID_ANY, display.GetName()));
+
+ 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);