private void texto_3D() { gramaticaC3D gramatica = new gramaticaC3D(); LanguageData language = new LanguageData(gramatica); Parser parser = new Parser(language); txt3D = new IronyFCTB(); txt3D.Grammar = gramatica; txt3D.Multiline = true; txt3D.WordWrap = false; txt3D.Dock = DockStyle.Fill; this.tab4.Controls.Add(txt3D); txt3D_optimizado = new IronyFCTB(); txt3D_optimizado.Grammar = gramatica; txt3D_optimizado.Multiline = true; txt3D_optimizado.WordWrap = false; txt3D_optimizado.Dock = DockStyle.Fill; this.tab5.Controls.Add(txt3D_optimizado); txt3D_debug = new IronyFCTB(); txt3D_debug.Grammar = gramatica; txt3D_debug.Multiline = true; txt3D_debug.WordWrap = false; txt3D_debug.Dock = DockStyle.Fill; this.panel13.Controls.Add(txt3D_debug); }
private void initComponent(String texto) { //iniciamos la bandera para saber si ha sido guardado los datos this.modificado = false; //Inicializamos la gramatica y su lenguage para tener el parse Gramatica = new SBScriptGrammar(); language = new LanguageData(Gramatica); parser = new Parser(language); //creamos el textbox TBContenido = new IronyFCTB(); TBContenido.Grammar = Gramatica; TBContenido.Multiline = true; TBContenido.Text = texto; //TBContenido.ScrollBars = RichTextBoxScrollBars.Both; TBContenido.WordWrap = false; TBContenido.Dock = DockStyle.Fill; //configuramos el label panel = new Label(); panel.Dock = DockStyle.Bottom; panel.Text = "Linea: 1, Columna: 1"; panel.TextAlign = ContentAlignment.MiddleRight; //agregamos los eventos TBContenido.TextChanged += TBContenido_TextChanged; TBContenido.SelectionChanged += TBContenido_SelectionChanged; //agregamos los elementos this.Controls.Add(TBContenido); this.Controls.Add(panel); //creamos el boton cerrar LidorSystems.IntegralUI.Controls.CommandButton closeButton = new LidorSystems.IntegralUI.Controls.CommandButton(); closeButton.ImageIndex = 0; closeButton.Key = "TAB_CLOSE"; //agreagamos el boton al tab this.Buttons.Add(closeButton); this.UseParentButtons = false; }
private void initComponent(String texto) { this.modificado = false; TBContenido = new IronyFCTB(); if (this.tipo == 0 || this.tipo == 1) { gramatica_olc = new gramaticaOLC(); language = new LanguageData(gramatica_olc); parser = new Parser(language); TBContenido.Grammar = gramatica_olc; } else if (this.tipo == 2) { gramatica_tree = new gramaticaTREE(); language = new LanguageData(gramatica_tree); parser = new Parser(language); TBContenido.Grammar = gramatica_tree; } TBContenido.Multiline = true; TBContenido.Text = texto; TBContenido.WordWrap = false; TBContenido.Dock = DockStyle.Fill; panel = new Label(); panel.Dock = DockStyle.Bottom; panel.Text = "Linea: 1, Columna: 1"; panel.TextAlign = ContentAlignment.MiddleRight; TBContenido.TextChanged += TBContenido_TextChanged; TBContenido.SelectionChanged += TBContenido_SelectionChanged; this.Controls.Add(TBContenido); this.Controls.Add(panel); }
public IdlAutoCompleteCollection(AutocompleteMenu autocompleteMenu, IronyFCTB textBox) { m_AutocompleteMenu = autocompleteMenu; m_TextBox = textBox; }
private void InitComponent(String texto) { //iniciamos la bandera para saber si ha sido guardado los datos this.modificado = false; switch (this.Tipo) { case 0: { //Inicializamos la gramatica y su lenguage para tener el parse GramaticaOLC = new OLCGrammar(); language = new LanguageData(GramaticaOLC); parser = new Parser(language); //creamos el textbox TBContenido = new IronyFCTB() { Grammar = GramaticaOLC }; } break; case 1: { //Inicializamos la gramatica y su lenguage para tener el parse GramaticaTree = new TreeGrammar(); language = new LanguageData(GramaticaTree); parser = new Parser(language); //creamos el textbox TBContenido = new IronyFCTB() { Grammar = GramaticaTree }; } break; case 2: { //Inicializamos la gramatica y su lenguage para tener el parse Gramatica3D = new _3DGrammar(); language = new LanguageData(Gramatica3D); parser = new Parser(language); //creamos el textbox TBContenido = new IronyFCTB() { Grammar = Gramatica3D }; } break; } TBContenido.Multiline = true; TBContenido.Text = texto; //TBContenido.ScrollBars = RichTextBoxScrollBars.Both; TBContenido.WordWrap = false; TBContenido.Dock = DockStyle.Fill; //configuramos el label panel = new Label() { Dock = DockStyle.Bottom, Text = "Linea: 1, Columna: 1", TextAlign = ContentAlignment.MiddleRight }; //agregamos los eventos TBContenido.TextChanged += TBContenido_TextChanged; TBContenido.SelectionChanged += TBContenido_SelectionChanged; //agregamos los elementos this.Controls.Add(TBContenido); this.Controls.Add(panel); //creamos el boton cerrar LidorSystems.IntegralUI.Controls.CommandButton closeButton = new LidorSystems.IntegralUI.Controls.CommandButton() { ImageIndex = 0, Key = "TAB_CLOSE" }; //agreagamos el boton al tab this.Buttons.Add(closeButton); this.UseParentButtons = false; }