- topsizer -> Add(new wxStaticLine(&dlg, -1), 0, wxEXPAND | wxLEFT | wxRIGHT, 10);
-
- wxButton *bu1 = new wxButton(&dlg, wxID_OK, "Okay");
+#if wxUSE_STATLINE
+ topsizer -> Add(new wxStaticLine(&dlg, wxID_ANY), 0, wxEXPAND | wxLEFT | wxRIGHT, 10);
+#endif // wxUSE_STATLINE
+
+ wxButton *bu1 = new wxButton(&dlg, wxID_OK, _("OK"));