Changeset 713

Show
Ignore:
Timestamp:
07/27/07 01:52:35 (1 year ago)
Author:
Gregor
Message:

*: Improved look of panels.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • other/dps/trunk/dsssps/newfile.d

    r711 r713  
    1515    { 
    1616        super(dpsApp.frame, wxID_ANY, 
    17             wxDefaultPosition, wxSize(320, 60)); 
     17            wxDefaultPosition, wxSize(320, 80)); 
    1818 
    1919        wxBoxSizer bs = new wxBoxSizer(Orientation.wxVERTICAL); 
     
    2121        // create a text dialog for the filename, starting with the prefix 
    2222        tctl = new wxTextCtrl(this, wxID_ANY, prefix, 
    23             wxPoint(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); 
    2525 
    2626        // 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"); 
    2928        EVT_BUTTON(floatingIds, &OnCreate); 
    30         bs.Add(b, 1, Stretch.wxEXPAND); 
     29        bs.Add(b, 1, Alignment.wxALIGN_CENTER | Direction.wxALL, 5); 
    3130 
    3231        SetSizer(bs); 
  • other/dps/trunk/dsssps/newsection.d

    r711 r713  
    2222    { 
    2323        super(dpsApp.frame, wxID_ANY, 
    24             wxDefaultPosition, wxSize(320, 90)); 
     24            wxDefaultPosition, wxSize(320, 120)); 
    2525 
    2626        wxBoxSizer bs = new wxBoxSizer(Orientation.wxVERTICAL); 
     
    2828        // create a text dialog for the name, starting with the prefix 
    2929        tctl = new wxTextCtrl(this, ++floatingIds, "", 
    30             wxPoint(0, 0), wxSize(320, 30)); 
     30            wxDefaultPosition, wxSize(310, 30)); 
    3131        tctlId = floatingIds; 
    3232        EVT_TEXT(tctlId, &OnChange); 
    33         bs.Add(tctl, 0, Stretch.wxEXPAND); 
     33        bs.Add(tctl, 0, Stretch.wxEXPAND | Direction.wxALL, 5); 
    3434 
    3535        // and the choice of types 
    3636        cctl = new wxChoice(this, wxID_ANY, 
    37             wxPoint(0, 30), wxSize(320, 30)); 
     37            wxDefaultPosition, wxDefaultSize); 
    3838        cctl.Append("library"); 
    3939        cctl.Append("sourcelibrary"); 
    4040        cctl.Append("binary"); 
    4141        cctl.Selection(0); 
    42         bs.Add(cctl, 0, Stretch.wxEXPAND); 
     42        bs.Add(cctl, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5); 
    4343 
    4444        // 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"); 
    4746        EVT_BUTTON(floatingIds, &OnCreate); 
    48         bs.Add(b, 1, Stretch.wxEXPAND); 
     47        bs.Add(b, 1, Alignment.wxALIGN_CENTER | Direction.wxALL, 5); 
    4948 
    5049        SetSizer(bs);