Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hbx1:HBox = new HBox();
- var lb1:Label = new Label();
- lb1.text = "De:";
- hbx1.addElement(lb1);
- hbx1.addElement(filtroDataIniBusca);
- hbx1.percentWidth = 300;
- hbx1.setStyle("horizontalAlign","center");
- var hbx2 : HBox = new HBox();
- var lb2 : Label = new Label();
- lb2.text = " a:";
- hbx2.addElement(lb2);
- hbx2.addElement(filtroDataFinBusca);
- hbx2.percentWidth = 100;
- hbx2.setStyle("horizontalAlign","center");
- filtroDataFinBusca.width = filtroDataIniBusca.width = 150;
- filtroDataIniBusca.setStyle("textAlign", "center");
- filtroDataFinBusca.setStyle("textAlign", "center");
- filtroDataFinBusca.formatString = filtroDataIniBusca.formatString="DD/MM/YYYY";
- filtroDataFinBusca.dayNames = filtroDataIniBusca.dayNames = nomeDias;
- filtroDataFinBusca.monthNames = filtroDataIniBusca.monthNames = nomeMeses;
- filtroDataFinBusca.addEventListener("change", changeComboFinal);
- filtroDataIniBusca.addEventListener("change", changeComboComeco);
- filtroDataFinBusca.yearNavigationEnabled = true;
- filtroDataIniBusca.yearNavigationEnabled = true;
- var spc1:Spacer = new Spacer();
- spc1.height = 5;
- var spc2:Spacer = new Spacer();
- spc2.height = 15;
- var btn1:Button = new Button();
- btn1.label="Confirmar";
- btn1.width = 110;
- btn1.addEventListener(MouseEvent.CLICK, savePeriodo);
- var btn2:Button = new Button();
- btn2.label="Cancelar";
- btn2.width = 110;
- btn2.addEventListener(MouseEvent.CLICK, closeTitleWindow);
- var hbxBtn:HBox = new HBox();
- hbxBtn.addElement(btn1);
- hbxBtn.addElement(btn2);
- hbxBtn.percentWidth = 100;
- hbxBtn.setStyle("paddingTop","20");
- hbxBtn.setStyle("horizontalAlign","center");
- var vbxR : VBox = new VBox();
- vbxR.percentWidth = 100;
- var radioButtonEmissao: RadioButton = new RadioButton();
- radioButtonEmissao.label = "Emissao2";
- radioButtonEmissao.id = "rbEmissao";
- radioButtonEmissao.groupName = "tipoData";
- radioButtonEmissao.selected = true;
- var radioButtonVencimento: RadioButton = new RadioButton();
- radioButtonVencimento.label = "Vencimento2";
- radioButtonVencimento.id = "rbVencimento";
- radioButtonVencimento.groupName = "tipoData";
- var radioButtonPagamento: RadioButton = new RadioButton();
- radioButtonPagamento.label = "Pagamento2";
- radioButtonPagamento.id = "rbPagamento";
- radioButtonPagamento.groupName = "tipoData";
- vbxR.addElement(radioButtonEmissao);
- vbxR.addElement(radioButtonVencimento);
- vbxR.addElement(radioButtonPagamento);
- vbxR.height = 80;
- var vbxBody:VBox = new VBox();
- vbxBody.addElement(hbx1);
- vbxBody.addElement(hbx2);
- vbxBody.addElement(spc2);
- vbxBody.addElement(vbxR);
- // vbxBody.addElement(spc1);
- vbxBody.addElement(hbxBtn);
- vbxBody.percentWidth = 300;
- vbxBody.percentHeight = 900;
- vbxBody.height = 950;
- vbxBody.setStyle("horizontalAlign","center");
- vbxBody.setStyle("verticalAlign","center");
- this.titleWindowSelectData.addElement(vbxBody);
Add Comment
Please, Sign In to add comment