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(); }
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); }
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); }
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); }
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); }
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_21 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); wx.BoxSizer sizer_20 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); wx.GridSizer grid_sizer_37 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_36 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_35 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_34 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_33 = new wx.GridSizer(2, 1, 0, 0); wx.BoxSizer sizer_19 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); wx.GridSizer grid_sizer_32 = new wx.GridSizer(2, 1, 0, 0); wx.BoxSizer sizer_18 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); wx.GridSizer grid_sizer_31 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_30 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_29 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_28 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_27 = new wx.GridSizer(2, 1, 0, 0); wx.BoxSizer sizer_17 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); wx.GridSizer grid_sizer_26 = new wx.GridSizer(2, 1, 0, 0); wx.GridSizer grid_sizer_25 = new wx.GridSizer(2, 1, 0, 0); wx.BoxSizer sizer_6 = new wx.BoxSizer(wx.Orientation.wxHORIZONTAL); wx.GridSizer grid_sizer_24 = 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.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(labEdicao, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_9.Add(edtEdicao, 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(labAnoPubli, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_4.Add(edtAnoPubli, 0, 0, 0); sizer_6.Add(grid_sizer_4, 0, 0, 0); grid_sizer_5.Add(labEditora, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_5.Add(edtCodEditora, 0, 0, 0); sizer_6.Add(grid_sizer_5, 0, wx.Direction.wxLEFT, 4); grid_sizer_6.Add(20, 20, 0, 0, 0); grid_sizer_6.Add(edtEditora, 0, 0, 0); sizer_6.Add(grid_sizer_6, 0, wx.Direction.wxLEFT, 2); grid_sizer_24.Add(20, 20, 0, 0, 0); grid_sizer_24.Add(btnPEditora, 0, 0, 0); sizer_6.Add(grid_sizer_24, 0, 0, 0); sizer_5.Add(sizer_6, 0, 0, 0); grid_sizer_25.Add(labVolume, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_25.Add(edtVolume, 0, 0, 0); sizer_17.Add(grid_sizer_25, 0, wx.Stretch.wxEXPAND, 0); grid_sizer_26.Add(labIdioma, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_26.Add(cmbIdioma, 0, 0, 0); sizer_17.Add(grid_sizer_26, 0, wx.Direction.wxLEFT | wx.Stretch.wxEXPAND, 4); sizer_5.Add(sizer_17, 1, 0, 0); grid_sizer_27.Add(labNPaginas, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_27.Add(edtNPaginas, 0, 0, 0); sizer_18.Add(grid_sizer_27, 0, 0, 0); grid_sizer_28.Add(labAssunto, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_28.Add(edtCodAssunto, 0, 0, 0); sizer_18.Add(grid_sizer_28, 0, wx.Direction.wxLEFT, 4); grid_sizer_29.Add(20, 20, 0, 0, 0); grid_sizer_29.Add(edtAssunto, 0, 0, 0); sizer_18.Add(grid_sizer_29, 0, wx.Direction.wxLEFT, 2); grid_sizer_30.Add(20, 20, 0, 0, 0); grid_sizer_30.Add(btnAdAssuntos, 0, 0, 0); sizer_18.Add(grid_sizer_30, 0, 0, 0); grid_sizer_31.Add(20, 20, 0, 0, 0); grid_sizer_31.Add(btnPAssunto, 0, 0, 0); sizer_18.Add(grid_sizer_31, 0, 0, 0); sizer_5.Add(sizer_18, 1, 0, 0); grid_sizer_32.Add(labPreco, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_32.Add(edtPreco, 0, 0, 0); sizer_19.Add(grid_sizer_32, 0, 0, 0); sizer_19.Add(lstAssuntos, 0, wx.Direction.wxLEFT, 4); sizer_5.Add(sizer_19, 1, 0, 0); grid_sizer_33.Add(labQtdEstoque, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_33.Add(edtQtdEstoque, 0, 0, 0); sizer_20.Add(grid_sizer_33, 0, 0, 0); grid_sizer_34.Add(labAutor, 0, wx.Alignment.wxALIGN_BOTTOM, 0); grid_sizer_34.Add(edtCodAutor, 0, 0, 0); sizer_20.Add(grid_sizer_34, 0, 0, 0); grid_sizer_35.Add(20, 20, 0, 0, 0); grid_sizer_35.Add(edtAutor, 0, 0, 0); sizer_20.Add(grid_sizer_35, 0, wx.Direction.wxLEFT, 2); grid_sizer_36.Add(20, 20, 0, 0, 0); grid_sizer_36.Add(btnAdAutores, 0, 0, 0); sizer_20.Add(grid_sizer_36, 0, 0, 0); grid_sizer_37.Add(20, 20, 0, 0, 0); grid_sizer_37.Add(btnPAutor, 0, 0, 0); sizer_20.Add(grid_sizer_37, 0, 0, 0); sizer_5.Add(sizer_20, 1, 0, 0); sizer_21.Add(92, 20, 0, 0, 0); sizer_21.Add(lstAutores, 0, 0, 0); sizer_5.Add(sizer_21, 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); }
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); }
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); }