- // 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(
+ // 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(