Changeset 713
- Timestamp:
- 07/27/07 01:52:35 (1 year ago)
- Files:
-
- other/dps/trunk/dsssps/newfile.d (modified) (2 diffs)
- other/dps/trunk/dsssps/newsection.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
other/dps/trunk/dsssps/newfile.d
r711 r713 15 15 { 16 16 super(dpsApp.frame, wxID_ANY, 17 wxDefaultPosition, wxSize(320, 60));17 wxDefaultPosition, wxSize(320, 80)); 18 18 19 19 wxBoxSizer bs = new wxBoxSizer(Orientation.wxVERTICAL); … … 21 21 // create a text dialog for the filename, starting with the prefix 22 22 tctl = new wxTextCtrl(this, wxID_ANY, prefix, 23 wx Point(0, 0), wxSize(320, 30));24 bs.Add(tctl, 0, Stretch.wxEXPAND );23 wxDefaultPosition, wxSize(310, 30)); 24 bs.Add(tctl, 0, Stretch.wxEXPAND | Direction.wxALL, 5); 25 25 26 26 // and a button to create 27 wxButton b = new wxButton(this, ++floatingIds, "Create", 28 wxPoint(0, 30), wxSize(320, 30)); 27 wxButton b = new wxButton(this, ++floatingIds, "Create"); 29 28 EVT_BUTTON(floatingIds, &OnCreate); 30 bs.Add(b, 1, Stretch.wxEXPAND);29 bs.Add(b, 1, Alignment.wxALIGN_CENTER | Direction.wxALL, 5); 31 30 32 31 SetSizer(bs); other/dps/trunk/dsssps/newsection.d
r711 r713 22 22 { 23 23 super(dpsApp.frame, wxID_ANY, 24 wxDefaultPosition, wxSize(320, 90));24 wxDefaultPosition, wxSize(320, 120)); 25 25 26 26 wxBoxSizer bs = new wxBoxSizer(Orientation.wxVERTICAL); … … 28 28 // create a text dialog for the name, starting with the prefix 29 29 tctl = new wxTextCtrl(this, ++floatingIds, "", 30 wx Point(0, 0), wxSize(320, 30));30 wxDefaultPosition, wxSize(310, 30)); 31 31 tctlId = floatingIds; 32 32 EVT_TEXT(tctlId, &OnChange); 33 bs.Add(tctl, 0, Stretch.wxEXPAND );33 bs.Add(tctl, 0, Stretch.wxEXPAND | Direction.wxALL, 5); 34 34 35 35 // and the choice of types 36 36 cctl = new wxChoice(this, wxID_ANY, 37 wx Point(0, 30), wxSize(320, 30));37 wxDefaultPosition, wxDefaultSize); 38 38 cctl.Append("library"); 39 39 cctl.Append("sourcelibrary"); 40 40 cctl.Append("binary"); 41 41 cctl.Selection(0); 42 bs.Add(cctl, 0, Stretch.wxEXPAND);42 bs.Add(cctl, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5); 43 43 44 44 // and a button to create 45 wxButton b = new wxButton(this, ++floatingIds, "Create", 46 wxPoint(0, 60), wxSize(320, 30)); 45 wxButton b = new wxButton(this, ++floatingIds, "Create"); 47 46 EVT_BUTTON(floatingIds, &OnCreate); 48 bs.Add(b, 1, Stretch.wxEXPAND);47 bs.Add(b, 1, Alignment.wxALIGN_CENTER | Direction.wxALL, 5); 49 48 50 49 SetSizer(bs);
