Esempio n. 1
0
        public RGraphicsUI() : base()
        {
            //This call is required by the Windows Form Designer.
            InitializeComponent();

            //Add any initialization after the InitializeComponent() call
            ScriptBox = new QWhale.Editor.SyntaxEdit();

            ScriptBox.WordWrap       = false;
            ScriptBox.Gutter.Options = (QWhale.Editor.GutterOptions)(((QWhale.Editor.GutterOptions.PaintLineNumbers | QWhale.Editor.GutterOptions.PaintLinesOnGutter) | QWhale.Editor.GutterOptions.PaintBookMarks) | QWhale.Editor.GutterOptions.PaintLineModificators);
            ScriptBox.Dock           = DockStyle.Fill;
            ScriptBox.BringToFront();
            int[] TabStops = { 3 };
            ScriptBox.Lines.TabStops  = TabStops;
            ScriptBox.Lines.UseSpaces = true;

            ScriptPage.Controls.Add(ScriptBox);

            ConsoleBox.BringToFront();
        }
Esempio n. 2
0
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
//			System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(EditorWindow));
			this.textEditor = new QWhale.Editor.SyntaxEdit(this.components);
			this.csParser = new QWhale.Syntax.Parsers.CsParser();
			this.vbParser = new QWhale.Syntax.Parsers.VbParser();
			this.SuspendLayout();
			this.textEditor.BackColor = System.Drawing.SystemColors.Window;
			this.textEditor.Braces.BracesOptions = QWhale.Editor.TextSource.BracesOptions.Highlight | QWhale.Editor.TextSource.BracesOptions.HighlightBounds | QWhale.Editor.TextSource.BracesOptions.TempHighlight;
			this.textEditor.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.textEditor.Dock = System.Windows.Forms.DockStyle.Fill;
			this.textEditor.Font = new System.Drawing.Font("Courier New", 10f);
			this.textEditor.Gutter.LineNumbersForeColor = System.Drawing.SystemColors.ControlText;
			this.textEditor.Location = new System.Drawing.Point(0, 0);
			this.textEditor.Name = "textEditor";
			this.textEditor.Outlining.AllowOutlining = true;
			this.textEditor.Size = new System.Drawing.Size(554, 356);
			this.textEditor.TabIndex = 0;
			this.textEditor.Text = "";
			this.csParser.DefaultState = 0;
			this.csParser.Options = QWhale.Syntax.SyntaxOptions.Outline | QWhale.Syntax.SyntaxOptions.SmartIndent | QWhale.Syntax.SyntaxOptions.CodeCompletion | QWhale.Syntax.SyntaxOptions.SyntaxErrors;
//			this.csParser.XmlScheme = componentResourceManager.GetString("csParser.XmlScheme");
			this.vbParser.DefaultState = 0;
			this.vbParser.Options = QWhale.Syntax.SyntaxOptions.Outline | QWhale.Syntax.SyntaxOptions.SmartIndent | QWhale.Syntax.SyntaxOptions.CodeCompletion | QWhale.Syntax.SyntaxOptions.SyntaxErrors;
//			this.vbParser.XmlScheme = componentResourceManager.GetString("vbParser.XmlScheme");
			this.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.textEditor);
			this.DefaultDockLocation = TD.SandDock.ContainerDockLocation.Center;
			this.Name = "EditorDocument";
			this.PersistState = false;
			this.Size = new System.Drawing.Size(554, 356);
			this.Text = "EditorDocument";
			this.ResumeLayout(false);
		}
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
//			System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(EditorWindow));
            this.textEditor = new QWhale.Editor.SyntaxEdit(this.components);
            this.csParser   = new QWhale.Syntax.Parsers.CsParser();
            this.vbParser   = new QWhale.Syntax.Parsers.VbParser();
            this.SuspendLayout();
            this.textEditor.BackColor            = System.Drawing.SystemColors.Window;
            this.textEditor.Braces.BracesOptions = QWhale.Editor.TextSource.BracesOptions.Highlight | QWhale.Editor.TextSource.BracesOptions.HighlightBounds | QWhale.Editor.TextSource.BracesOptions.TempHighlight;
            this.textEditor.Cursor = System.Windows.Forms.Cursors.IBeam;
            this.textEditor.Dock   = System.Windows.Forms.DockStyle.Fill;
            this.textEditor.Font   = new System.Drawing.Font("Courier New", 10f);
            this.textEditor.Gutter.LineNumbersForeColor = System.Drawing.SystemColors.ControlText;
            this.textEditor.Location = new System.Drawing.Point(0, 0);
            this.textEditor.Name     = "textEditor";
            this.textEditor.Outlining.AllowOutlining = true;
            this.textEditor.Size       = new System.Drawing.Size(554, 356);
            this.textEditor.TabIndex   = 0;
            this.textEditor.Text       = "";
            this.csParser.DefaultState = 0;
            this.csParser.Options      = QWhale.Syntax.SyntaxOptions.Outline | QWhale.Syntax.SyntaxOptions.SmartIndent | QWhale.Syntax.SyntaxOptions.CodeCompletion | QWhale.Syntax.SyntaxOptions.SyntaxErrors;
//			this.csParser.XmlScheme = componentResourceManager.GetString("csParser.XmlScheme");
            this.vbParser.DefaultState = 0;
            this.vbParser.Options      = QWhale.Syntax.SyntaxOptions.Outline | QWhale.Syntax.SyntaxOptions.SmartIndent | QWhale.Syntax.SyntaxOptions.CodeCompletion | QWhale.Syntax.SyntaxOptions.SyntaxErrors;
//			this.vbParser.XmlScheme = componentResourceManager.GetString("vbParser.XmlScheme");
            this.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.textEditor);
            this.DefaultDockLocation = TD.SandDock.ContainerDockLocation.Center;
            this.Name         = "EditorDocument";
            this.PersistState = false;
            this.Size         = new System.Drawing.Size(554, 356);
            this.Text         = "EditorDocument";
            this.ResumeLayout(false);
        }