예제 #1
0
 private void FazLayout()
 {
     wx.BoxSizer       sizer_1 = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.StaticBoxSizer sizer_2 = new wx.StaticBoxSizer(
         new wx.StaticBox(this, -1, ""), wx.Orientation.wxVERTICAL);
     sizer_2.Add(labBmp, 0, wx.Alignment.wxALIGN_CENTER_HORIZONTAL, 0);
     sizer_2.Add(labVersao, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT, 2);
     sizer_2.Add(labDireitos, 0, wx.Direction.wxALL, 2);
     sizer_2.Add(labSistema, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_CENTER_HORIZONTAL |
                 wx.Alignment.wxALIGN_CENTER_VERTICAL, 2);
     sizer_1.Add(sizer_2, 1, wx.Direction.wxALL | wx.Stretch.wxEXPAND, 6);
     sizer_1.Add(btnOk, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_CENTER_HORIZONTAL, 4);
     this.SetSizer(sizer_1);
     sizer_1.SetSizeHints(this);
     sizer_1.Fit(this);
     this.Layout();
 }
예제 #2
0
 private void FazLayout()
 {
     wx.BoxSizer       sizer_1       = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer       sizer_2       = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer       sizer_3       = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer       sizer_4       = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer       sizer_5       = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer       sizer_16      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer      grid_sizer_23 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer      grid_sizer_22 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer      grid_sizer_19 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer       sizer_15      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer      grid_sizer_21 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer      grid_sizer_20 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer      grid_sizer_18 = new wx.GridSizer(2, 1, 0, 0);
     wx.StaticBoxSizer sizer_11      = new wx.StaticBoxSizer(
         new wx.StaticBox(this, -1, "Endereço"), wx.Orientation.wxVERTICAL);
     wx.BoxSizer  sizer_14      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_17 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_16 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_15 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_13      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_14 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_13 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_12      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer  sizer_10      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_12 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_11 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_6       = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_5  = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_4  = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_8       = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_8  = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_7       = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_7  = new wx.GridSizer(2, 1, 0, 0);
     grid_sizer_7.Add(labCodigo, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_7.Add(edtCodigo, 0, 0, 0);
     sizer_7.Add(grid_sizer_7, 0, 0, 0);
     sizer_7.Add(btnNovo, 0, wx.Direction.wxLEFT | wx.Alignment.wxALIGN_BOTTOM, 5);
     sizer_5.Add(sizer_7, 1, 0, 0);
     grid_sizer_8.Add(labDescricao, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_8.Add(edtDescricao, 0, 0, 0);
     sizer_8.Add(grid_sizer_8, 0, 0, 0);
     sizer_5.Add(sizer_8, 1, wx.Stretch.wxEXPAND, 0);
     grid_sizer_4.Add(labEmail, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_4.Add(edtEmail, 0, 0, 0);
     sizer_6.Add(grid_sizer_4, 0, 0, 0);
     grid_sizer_5.Add(labIdentidade, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_5.Add(edtIdentidade, 0, 0, 0);
     sizer_6.Add(grid_sizer_5, 0, wx.Direction.wxLEFT, 4);
     sizer_5.Add(sizer_6, 0, 0, 0);
     sizer_10.Add(rbSexo, 0, 0, 0);
     grid_sizer_11.Add(labTelefone, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_11.Add(edtTelefone, 0, 0, 0);
     sizer_10.Add(grid_sizer_11, 1, wx.Direction.wxLEFT | wx.Stretch.wxEXPAND, 4);
     grid_sizer_12.Add(labDtNasc, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_12.Add(edtDtNasc, 0, 0, 0);
     sizer_10.Add(grid_sizer_12, 1, wx.Direction.wxLEFT | wx.Stretch.wxEXPAND, 4);
     sizer_5.Add(sizer_10, 1, wx.Stretch.wxEXPAND, 0);
     sizer_12.Add(edtCodEndereco, 0, 0, 0);
     sizer_12.Add(btnPEndereco, 0, 0, 0);
     sizer_11.Add(sizer_12, 0, wx.Direction.wxALL, 2);
     grid_sizer_13.Add(labLogradouro, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_13.Add(edtLogradouro, 0, 0, 0);
     sizer_13.Add(grid_sizer_13, 0, 0, 0);
     grid_sizer_14.Add(labBairro, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_14.Add(edtBairro, 0, 0, 0);
     sizer_13.Add(grid_sizer_14, 0, wx.Direction.wxLEFT, 4);
     sizer_11.Add(sizer_13, 0, 0, 0);
     grid_sizer_15.Add(labCEP, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_15.Add(edtCEP, 0, 0, 0);
     sizer_14.Add(grid_sizer_15, 0, 0, 0);
     grid_sizer_16.Add(labCidade, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_16.Add(edtCidade, 0, 0, 0);
     sizer_14.Add(grid_sizer_16, 0, wx.Direction.wxLEFT, 4);
     grid_sizer_17.Add(labEstado, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_17.Add(edtEstado, 0, 0, 0);
     sizer_14.Add(grid_sizer_17, 0, wx.Direction.wxLEFT, 4);
     sizer_11.Add(sizer_14, 1, 0, 0);
     sizer_5.Add(sizer_11, 0, 0, 0);
     grid_sizer_18.Add(labPais, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_18.Add(edtCodPais, 0, 0, 0);
     sizer_15.Add(grid_sizer_18, 0, 0, 0);
     grid_sizer_20.Add(20, 20, 0, 0, 0);
     grid_sizer_20.Add(edtPais, 0, 0, 0);
     sizer_15.Add(grid_sizer_20, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_21.Add(20, 20, 0, 0, 0);
     grid_sizer_21.Add(btnPPais, 0, 0, 0);
     sizer_15.Add(grid_sizer_21, 0, 0, 0);
     sizer_5.Add(sizer_15, 0, 0, 0);
     grid_sizer_19.Add(labProfissao, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_19.Add(edtCodProfissao, 0, 0, 0);
     sizer_16.Add(grid_sizer_19, 0, 0, 0);
     grid_sizer_22.Add(20, 20, 0, 0, 0);
     grid_sizer_22.Add(edtProfissao, 0, 0, 0);
     sizer_16.Add(grid_sizer_22, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_23.Add(20, 20, 0, 0, 0);
     grid_sizer_23.Add(btnPProfissao, 0, 0, 0);
     sizer_16.Add(grid_sizer_23, 0, 0, 0);
     sizer_5.Add(sizer_16, 0, 0, 0);
     sizer_3.Add(sizer_5, 0, 0, 0);
     sizer_4.Add(btnPesquisar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT, 2);
     sizer_4.Add(btnAnterior, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT, 2);
     sizer_4.Add(btnProximo, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT, 2);
     sizer_3.Add(sizer_4, 1, 0, 0);
     sizer_1.Add(sizer_3, 1, wx.Direction.wxALL | wx.Stretch.wxEXPAND, 4);
     sizer_2.Add(btnSalvar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_2.Add(btnExcluir, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_2.Add(btnLimpar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_2.Add(btnFechar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_1.Add(sizer_2, 0, wx.Direction.wxRIGHT | wx.Direction.wxBOTTOM |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 4);
     AutoLayout = true;
     SetSizer(sizer_1);
     sizer_1.Fit(this);
     sizer_1.SetSizeHints(this);
 }