]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/wizard/wiztest.cpp
Added SetSelectionMode
[wxWidgets.git] / samples / wizard / wiztest.cpp
index cd078af265df207f614f3863991454041120318b..d6f249de35f98f8e29ee107eef5efa96cfc3fc20 100644 (file)
@@ -146,7 +146,13 @@ public:
     wxRadioboxPage(wxWizard *parent) : wxWizardPageSimple(parent)
     {
         // should correspond to the enum above
-        static wxString choices[] = { "forward", "backward", "both", "neither" };
+        //        static wxString choices[] = { "forward", "backward", "both", "neither" };
+        // The above syntax can cause an internal compiler error with gcc.
+        wxString choices[4];
+        choices[0] = "forward";
+        choices[1] = "backward";
+        choices[2] = "both";
+        choices[3] = "neither";
 
         m_radio = new wxRadioBox(this, -1, "Allow to proceed:",
                                  wxPoint(5, 5), wxDefaultSize,