示例#1
0
 private void FazLayout()
 {
     wx.BoxSizer  sizer_1      = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.GridSizer grid_sizer_2 = new wx.GridSizer(1, 2, 0, 0);
     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.GridSizer grid_sizer_1 = new wx.GridSizer(2, 1, 0, 0);
     grid_sizer_1.Add(labDescricao, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_1.Add(edtDescricao, 0, 0, 0);
     sizer_3.Add(grid_sizer_1, 0, wx.Direction.wxALL, 2);
     sizer_4.Add(20, 20, 0, 0, 0);
     sizer_4.Add(btnPesquisar, 0, wx.Direction.wxLEFT |
                 wx.Direction.wxTOP | wx.Direction.wxBOTTOM, 5);
     sizer_3.Add(sizer_4, 0, 0, 0);
     sizer_1.Add(sizer_3, 0, wx.Direction.wxALL, 4);
     sizer_1.Add(gridConsulta, 1, wx.Stretch.wxEXPAND, 0);
     grid_sizer_2.Add(labRegistro, 0, wx.Direction.wxALL, 10);
     sizer_2.Add(btnLimpar, 0, wx.Alignment.wxALIGN_RIGHT |
                 wx.Alignment.wxALIGN_BOTTOM, 8);
     sizer_2.Add(btnFechar, 0, wx.Direction.wxLEFT |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 8);
     grid_sizer_2.Add(sizer_2, 1, wx.Direction.wxALL |
                      wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 4);
     sizer_1.Add(grid_sizer_2, 0, wx.Direction.wxALL |
                 wx.Stretch.wxEXPAND | wx.Alignment.wxALIGN_BOTTOM, 0);
     AutoLayout = true;
     SetSizer(sizer_1);
     sizer_1.Fit(this);
     sizer_1.SetSizeHints(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_9       = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_10 = new wx.GridSizer(4, 1, 0, 0);
     wx.GridSizer grid_sizer_3  = new wx.GridSizer(4, 1, 0, 0);
     grid_sizer_3.Add(labLogin, 0,
                      wx.Direction.wxLEFT | wx.Alignment.wxALIGN_BOTTOM, 8);
     grid_sizer_3.Add(edtLogin, 0, wx.Direction.wxLEFT, 8);
     grid_sizer_3.Add(labNovaSenha, 0,
                      wx.Direction.wxLEFT | wx.Alignment.wxALIGN_BOTTOM, 8);
     grid_sizer_3.Add(edtNovaSenha, 0, wx.Direction.wxLEFT, 8);
     sizer_9.Add(grid_sizer_3, 0, 0, 0);
     grid_sizer_10.Add(labSenhaAtual, 0,
                       wx.Direction.wxLEFT | wx.Alignment.wxALIGN_BOTTOM, 4);
     grid_sizer_10.Add(edtSenhaAtual, 0, wx.Direction.wxLEFT, 4);
     grid_sizer_10.Add(labConfirmarSenha, 0,
                       wx.Direction.wxLEFT | wx.Alignment.wxALIGN_BOTTOM, 4);
     grid_sizer_10.Add(edtConfirmarSenha, 0, wx.Direction.wxLEFT, 4);
     sizer_9.Add(grid_sizer_10, 0, 0, 0);
     sizer_1.Add(sizer_9, 1, 0, 0);
     sizer_2.Add(btnSalvar, 0, wx.Direction.wxALL, 2);
     sizer_2.Add(btnLimpar, 0, wx.Direction.wxALL, 2);
     sizer_2.Add(btnFechar, 0, wx.Direction.wxALL, 2);
     sizer_1.Add(sizer_2, 0, wx.Direction.wxALL, 4);
     this.AutoLayout = true;
     this.SetSizer(sizer_1);
     sizer_1.Fit(this);
     sizer_1.SetSizeHints(this);
 }
示例#3
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();
 }
示例#4
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.GridSizer grid_sizer_2 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_1 = new wx.GridSizer(2, 2, 0, 1);
     grid_sizer_1.Add(labCodigo, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_1.Add(20, 10, 0, 0, 0);
     grid_sizer_1.Add(edtCodigo, 0, 0, 0);
     grid_sizer_1.Add(btnNovo, 0, wx.Direction.wxLEFT, 6);
     sizer_5.Add(grid_sizer_1, 0, 0, 0);
     grid_sizer_2.Add(labDescricao, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_2.Add(edtDescricao, 0, 0, 2);
     sizer_5.Add(grid_sizer_2, 0, 0, 0);
     sizer_3.Add(sizer_5, 1, 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, 0, wx.Alignment.wxALIGN_RIGHT, 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.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 4);
     AutoLayout = true;
     SetSizer(sizer_1);
     sizer_1.Fit(this);
     sizer_1.SetSizeHints(this);
 }
示例#5
0
 private void FazLayout()
 {
     wx.BoxSizer sizer_1 = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer sizer_4 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer sizer_2 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer sizer_3 = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     sizer_2.Add(bmpLogin, 0, wx.Direction.wxALL, 6);
     sizer_3.Add(labLogin, 0, wx.Direction.wxALL | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_3.Add(edtLogin, 0, wx.Direction.wxALL, 2);
     sizer_3.Add(labSenha, 0, wx.Direction.wxALL | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_3.Add(edtSenha, 0, wx.Direction.wxALL, 2);
     sizer_2.Add(sizer_3, 0, wx.Direction.wxALL, 6);
     sizer_1.Add(sizer_2, 0, 0, 3);
     sizer_4.Add(btnLogin, 0, wx.Direction.wxLEFT | wx.Direction.wxTOP |
                 wx.Direction.wxBOTTOM | wx.Alignment.wxALIGN_BOTTOM, 10);
     sizer_4.Add(btnCancelar, 0, wx.Direction.wxALL | wx.Alignment.wxALIGN_BOTTOM, 10);
     sizer_1.Add(sizer_4, 0,
                 wx.Direction.wxALL | wx.Alignment.wxALIGN_CENTER_HORIZONTAL, 1);
     this.SetSizer(sizer_1);
     sizer_1.Fit(this);
     sizer_1.SetSizeHints(this);
     this.Layout();
     this.Centre();
 }
示例#6
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);
 }
示例#7
0
 private void FazLayout()
 {
     wx.BoxSizer  sizer_1      = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer  sizer_6      = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.GridSizer sizer_22     = new wx.GridSizer(1, 2, 0, 0);
     wx.BoxSizer  sizer_23     = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer  sizer_8      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer  sizer_7      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer  sizer_24     = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer  sizer_4      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_8 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_6 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_5 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_3      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_4 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_3 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_2 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_2      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_1 = new wx.GridSizer(2, 1, 0, 0);
     grid_sizer_1.Add(labDtHrVenda, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_1.Add(edtDtHrVenda, 0, 0, 0);
     sizer_2.Add(grid_sizer_1, 0, wx.Direction.wxLEFT, 2);
     sizer_2.Add(btnPesquisar, 0, wx.Direction.wxLEFT |
                 wx.Direction.wxTOP | wx.Alignment.wxALIGN_BOTTOM, 10);
     sizer_1.Add(sizer_2, 0, 0, 0);
     grid_sizer_2.Add(labCPF, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_2.Add(edtCPF, 0, 0, 0);
     sizer_3.Add(grid_sizer_2, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_3.Add(labCliente, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_3.Add(edtCliente, 0, 0, 0);
     sizer_3.Add(grid_sizer_3, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_4.Add(20, 20, 0, 0, 0);
     grid_sizer_4.Add(btnPCliente, 0, 0, 0);
     sizer_3.Add(grid_sizer_4, 0, 0, 0);
     sizer_1.Add(sizer_3, 0, 0, 0);
     grid_sizer_5.Add(labISBN, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_5.Add(edtISBN, 0, 0, 0);
     sizer_4.Add(grid_sizer_5, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_6.Add(labLivro, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_6.Add(edtLivro, 0, 0, 0);
     sizer_4.Add(grid_sizer_6, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_8.Add(20, 20, 0, 0, 0);
     grid_sizer_8.Add(btnPLivro, 0, 0, 0);
     sizer_4.Add(grid_sizer_8, 0, 0, 0);
     sizer_1.Add(sizer_4, 0, 0, 0);
     sizer_1.Add(gridVendas, 1, wx.Direction.wxALL | wx.Stretch.wxEXPAND, 2);
     sizer_24.Add(labRegistro, 0, wx.Direction.wxALL, 4);
     sizer_24.Add(20, 20, 0, 0, 0);
     sizer_22.Add(sizer_24, 0, 0, 0);
     sizer_7.Add(labPrecoTotal, 0, wx.Direction.wxALL, 2);
     sizer_7.Add(edtPrecoTotal, 0, wx.Direction.wxALL, 2);
     sizer_23.Add(sizer_7, 0, wx.Direction.wxALL |
                  wx.Alignment.wxALIGN_RIGHT, 2);
     sizer_8.Add(btnLimpar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_8.Add(btnFechar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_23.Add(sizer_8, 0, wx.Direction.wxALL |
                  wx.Alignment.wxALIGN_RIGHT, 2);
     sizer_22.Add(sizer_23, 1, wx.Alignment.wxALIGN_RIGHT |
                  wx.Alignment.wxALIGN_BOTTOM, 0);
     sizer_6.Add(sizer_22, 0, wx.Stretch.wxEXPAND, 0);
     sizer_1.Add(sizer_6, 0, wx.Stretch.wxEXPAND, 0);
     AutoLayout = true;
     SetSizer(sizer_1);
     sizer_1.Fit(this);
     sizer_1.SetSizeHints(this);
 }
示例#8
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_6      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_6 = new wx.GridSizer(2, 1, 0, 0);
     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_9 = new wx.GridSizer(2, 1, 0, 0);
     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);
     grid_sizer_9.Add(labBairro, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_9.Add(edtBairro, 0, 0, 0);
     sizer_8.Add(grid_sizer_9, 0, wx.Direction.wxLEFT, 2);
     sizer_5.Add(sizer_8, 1, wx.Stretch.wxEXPAND, 0);
     grid_sizer_4.Add(labCEP, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_4.Add(edtCEP, 0, 0, 0);
     sizer_6.Add(grid_sizer_4, 0, 0, 0);
     grid_sizer_5.Add(labCidade, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_5.Add(edtCidade, 0, 0, 0);
     sizer_6.Add(grid_sizer_5, 0, wx.Direction.wxLEFT, 4);
     grid_sizer_6.Add(labEstado, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_6.Add(cmbEstado, 0, 0, 0);
     sizer_6.Add(grid_sizer_6, 0, wx.Direction.wxLEFT, 5);
     sizer_5.Add(sizer_6, 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);
 }
示例#9
0
 private void FazLayout()
 {
     wx.BoxSizer  sizer_1      = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer  sizer_6      = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer  sizer_8      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer  sizer_7      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.BoxSizer  sizer_5      = new wx.BoxSizer(wx.Orientation.wxVERTICAL);
     wx.BoxSizer  sizer_4      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_8 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_7 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_6 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_5 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_3      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_4 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_3 = new wx.GridSizer(2, 1, 0, 0);
     wx.GridSizer grid_sizer_2 = new wx.GridSizer(2, 1, 0, 0);
     wx.BoxSizer  sizer_2      = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL);
     wx.GridSizer grid_sizer_1 = new wx.GridSizer(2, 1, 0, 0);
     grid_sizer_1.Add(labDtHrVenda, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_1.Add(edtDtHrVenda, 0, 0, 0);
     sizer_2.Add(grid_sizer_1, 0, wx.Direction.wxLEFT, 2);
     sizer_2.Add(20, 20, 0, 0, 0);
     sizer_1.Add(sizer_2, 0, 0, 0);
     grid_sizer_2.Add(labCodigo, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_2.Add(edtCodigo, 0, 0, 0);
     sizer_3.Add(grid_sizer_2, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_3.Add(labDescricao, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_3.Add(edtDescricao, 0, 0, 0);
     sizer_3.Add(grid_sizer_3, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_4.Add(20, 20, 0, 0, 0);
     grid_sizer_4.Add(btnPCliente, 0, 0, 0);
     sizer_3.Add(grid_sizer_4, 0, 0, 0);
     sizer_1.Add(sizer_3, 0, 0, 0);
     grid_sizer_5.Add(labISBN, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_5.Add(edtISBN, 0, 0, 0);
     sizer_4.Add(grid_sizer_5, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_6.Add(labLivro, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     grid_sizer_6.Add(edtLivro, 0, 0, 0);
     sizer_4.Add(grid_sizer_6, 0, wx.Direction.wxLEFT, 2);
     grid_sizer_7.Add(20, 20, 0, 0, 0);
     grid_sizer_7.Add(btnAdLivros, 0, 0, 0);
     sizer_4.Add(grid_sizer_7, 1, wx.Stretch.wxEXPAND, 0);
     grid_sizer_8.Add(20, 20, 0, 0, 0);
     grid_sizer_8.Add(btnPLivro, 0, 0, 0);
     sizer_4.Add(grid_sizer_8, 0, 0, 0);
     sizer_1.Add(sizer_4, 0, 0, 0);
     sizer_5.Add(labLivros, 0, wx.Alignment.wxALIGN_BOTTOM, 0);
     sizer_5.Add(lstLivros, 1, wx.Direction.wxALL | wx.Stretch.wxEXPAND, 1);
     sizer_1.Add(sizer_5, 1, wx.Stretch.wxEXPAND, 0);
     sizer_7.Add(labPrecoTotal, 0, wx.Direction.wxALL, 2);
     sizer_7.Add(edtPrecoTotal, 0, wx.Direction.wxALL, 2);
     sizer_6.Add(sizer_7, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT, 2);
     sizer_8.Add(btnVender, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_8.Add(btnLimpar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_8.Add(btnFechar, 0, wx.Direction.wxALL |
                 wx.Alignment.wxALIGN_RIGHT | wx.Alignment.wxALIGN_BOTTOM, 2);
     sizer_6.Add(sizer_8, 0, wx.Direction.wxALL, 2);
     sizer_1.Add(sizer_6, 0, wx.Alignment.wxALIGN_RIGHT |
                 wx.Alignment.wxALIGN_BOTTOM, 0);
     AutoLayout = true;
     SetSizer(sizer_1);
     sizer_1.Fit(this);
     sizer_1.SetSizeHints(this);
 }