- // Add items to the panel
- wxButton *okButton = new wxButton(panel, wxID_OK, "OK", wxPoint(-1, -1),
- wxSize(80, 26), 0, wxDefaultValidator, "ok");
- wxButton *cancelButton = new wxButton(panel, wxID_CANCEL, "Cancel", wxPoint(-1, -1),
- wxSize(80, 26), 0, wxDefaultValidator, "cancel");
- wxButton *updateButton = new wxButton(panel, wxID_PROP_UPDATE, "Update", wxPoint(-1, -1),
- wxSize(80, 26), 0, wxDefaultValidator, "update");
- wxButton *revertButton = new wxButton(panel, wxID_PROP_REVERT, "Revert", wxPoint(-1, -1),
- wxSize(80, 26), 0, wxDefaultValidator, "revert");
-
- c = new wxLayoutConstraints;
- c->right.SameAs(panel, wxRight, 4);
- c->bottom.SameAs(panel, wxBottom, 4);
- c->height.AsIs();
- c->width.AsIs();
- revertButton->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->right.SameAs(revertButton, wxLeft, 4);
- c->bottom.SameAs(panel, wxBottom, 4);
- c->height.AsIs();
- c->width.AsIs();
- updateButton->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->right.SameAs(updateButton, wxLeft, 4);
- c->bottom.SameAs(panel, wxBottom, 4);
- c->height.AsIs();
- c->width.AsIs();
- cancelButton->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->right.SameAs(cancelButton, wxLeft, 4);
- c->bottom.SameAs(panel, wxBottom, 4);
- c->height.AsIs();
- c->width.AsIs();
- okButton->SetConstraints(c);
-
- // The name of this text item matches the "fred" property
- wxTextCtrl *text = new wxTextCtrl(panel, -1, "Fred", wxPoint(-1, -1), wxSize(
- 200, -1), 0, wxDefaultValidator, "fred");
-
- c = new wxLayoutConstraints;
- c->left.SameAs(panel, wxLeft, 4);
- c->top.SameAs(panel, wxTop, 4);
- c->height.AsIs();
- c->width.AsIs();
- text->SetConstraints(c);
-
- wxCheckBox *checkBox = new wxCheckBox(panel, -1, "Yes or no", wxPoint(-1, -1),
- wxSize(-1, -1), 0, wxDefaultValidator, "tough choice");
-
- c = new wxLayoutConstraints;
- c->left.SameAs(text, wxRight, 20);
- c->top.SameAs(panel, wxTop, 4);
- c->height.AsIs();
- c->width.AsIs();
- checkBox->SetConstraints(c);
-
+ // Add items to the panel
+ wxButton *okButton = new wxButton(panel, wxID_OK, _T("OK"), wxPoint(-1, -1),
+ wxSize(80, 26), 0, wxDefaultValidator, _T("ok"));
+ wxButton *cancelButton = new wxButton(panel, wxID_CANCEL, _T("Cancel"), wxPoint(-1, -1),
+ wxSize(80, 26), 0, wxDefaultValidator, _T("cancel"));
+ wxButton *updateButton = new wxButton(panel, wxID_PROP_UPDATE, _T("Update"), wxPoint(-1, -1),
+ wxSize(80, 26), 0, wxDefaultValidator, _T("update"));
+ wxButton *revertButton = new wxButton(panel, wxID_PROP_REVERT, _T("Revert"), wxPoint(-1, -1),
+ wxSize(80, 26), 0, wxDefaultValidator, _T("revert"));
+
+ c = new wxLayoutConstraints;
+ c->right.SameAs(panel, wxRight, 4);
+ c->bottom.SameAs(panel, wxBottom, 4);
+ c->height.AsIs();
+ c->width.AsIs();
+ revertButton->SetConstraints(c);
+
+ c = new wxLayoutConstraints;
+ c->right.SameAs(revertButton, wxLeft, 4);
+ c->bottom.SameAs(panel, wxBottom, 4);
+ c->height.AsIs();
+ c->width.AsIs();
+ updateButton->SetConstraints(c);
+
+ c = new wxLayoutConstraints;
+ c->right.SameAs(updateButton, wxLeft, 4);
+ c->bottom.SameAs(panel, wxBottom, 4);
+ c->height.AsIs();
+ c->width.AsIs();
+ cancelButton->SetConstraints(c);
+
+ c = new wxLayoutConstraints;
+ c->right.SameAs(cancelButton, wxLeft, 4);
+ c->bottom.SameAs(panel, wxBottom, 4);
+ c->height.AsIs();
+ c->width.AsIs();
+ okButton->SetConstraints(c);
+
+ // The name of this text item matches the "fred" property
+ wxTextCtrl *text = new wxTextCtrl(panel, -1, _T("Fred"), wxPoint(-1, -1), wxSize(
+ 200, -1), 0, wxDefaultValidator, _T("fred"));
+
+ c = new wxLayoutConstraints;
+ c->left.SameAs(panel, wxLeft, 4);
+ c->top.SameAs(panel, wxTop, 4);
+ c->height.AsIs();
+ c->width.AsIs();
+ text->SetConstraints(c);
+
+ wxCheckBox *checkBox = new wxCheckBox(panel, -1, _T("Yes or no"), wxPoint(-1, -1),
+ wxSize(-1, -1), 0, wxDefaultValidator, _T("tough choice"));
+
+ c = new wxLayoutConstraints;
+ c->left.SameAs(text, wxRight, 20);
+ c->top.SameAs(panel, wxTop, 4);
+ c->height.AsIs();
+ c->width.AsIs();
+ checkBox->SetConstraints(c);
+