Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     this.components       = new System.ComponentModel.Container();
     this.errorLog         = new System.Windows.Forms.TextBox();
     this.syntaxBoxControl = new Alsing.Windows.Forms.SyntaxBoxControl();
     this.SuspendLayout();
     //
     // errorLog
     //
     this.errorLog.BackColor  = System.Drawing.SystemColors.Window;
     this.errorLog.Dock       = System.Windows.Forms.DockStyle.Bottom;
     this.errorLog.Location   = new System.Drawing.Point(0, 319);
     this.errorLog.Multiline  = true;
     this.errorLog.Name       = "errorLog";
     this.errorLog.ReadOnly   = true;
     this.errorLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.errorLog.Size       = new System.Drawing.Size(799, 96);
     this.errorLog.TabIndex   = 2;
     this.errorLog.Visible    = false;
     //
     // syntaxBoxControl
     //
     this.syntaxBoxControl.ActiveView           = Alsing.Windows.Forms.ActiveView.BottomRight;
     this.syntaxBoxControl.AutoListPosition     = null;
     this.syntaxBoxControl.AutoListSelectedText = "a123";
     this.syntaxBoxControl.AutoListVisible      = false;
     this.syntaxBoxControl.BackColor            = System.Drawing.Color.White;
     this.syntaxBoxControl.BorderStyle          = Alsing.Windows.Forms.BorderStyle.None;
     this.syntaxBoxControl.CopyAsRTF            = false;
     this.syntaxBoxControl.Dock                 = System.Windows.Forms.DockStyle.Fill;
     this.syntaxBoxControl.FontName             = "Courier new";
     this.syntaxBoxControl.ImeMode              = System.Windows.Forms.ImeMode.NoControl;
     this.syntaxBoxControl.InfoTipCount         = 1;
     this.syntaxBoxControl.InfoTipPosition      = null;
     this.syntaxBoxControl.InfoTipSelectedIndex = 1;
     this.syntaxBoxControl.InfoTipVisible       = false;
     this.syntaxBoxControl.Location             = new System.Drawing.Point(0, 0);
     this.syntaxBoxControl.LockCursorUpdate     = false;
     this.syntaxBoxControl.Name                 = "syntaxBoxControl";
     this.syntaxBoxControl.ShowScopeIndicator   = false;
     this.syntaxBoxControl.Size                 = new System.Drawing.Size(799, 319);
     this.syntaxBoxControl.SmoothScroll         = false;
     this.syntaxBoxControl.SplitviewH           = -4;
     this.syntaxBoxControl.SplitviewV           = -4;
     this.syntaxBoxControl.TabGuideColor        = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(219)))), ((int)(((byte)(214)))));
     this.syntaxBoxControl.TabIndex             = 3;
     this.syntaxBoxControl.Text                 = "syntaxBoxControl1";
     this.syntaxBoxControl.WhitespaceColor      = System.Drawing.SystemColors.ControlDark;
     //
     // ScriptView
     //
     this.ClientSize = new System.Drawing.Size(799, 415);
     this.Controls.Add(this.syntaxBoxControl);
     this.Controls.Add(this.errorLog);
     this.Name = "ScriptView";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 2
0
		public void Start(Alsing.Windows.Forms.SyntaxBoxControl syntaxbox, Alsing.SourceCode.SyntaxDocument syntaxdoc, string arguments)
		{
			this.syntaxBox = syntaxbox;
			this.syntaxDocument = syntaxdoc;
			this.Arguments = arguments;
			_stopped = false;
			try {
			worker.RunWorkerAsync();
			} catch {
			}
		}
Ejemplo n.º 3
0
 private void Load()
 {
     if (Windows.Editors.EditorManager.ScriptEditor.InvokeRequired)
     {
         Windows.Editors.EditorManager.ScriptEditor.Invoke(new LoadDelegate(Load));
     }
     else
     {
         syntaxBox           = new Alsing.Windows.Forms.SyntaxBoxControl();
         syntaxBox.AllowDrop = false;
         syntaxBox.Location  = new System.Drawing.Point(0, 0);
         syntaxBox.Dock      = System.Windows.Forms.DockStyle.Fill;
     }
 }
Ejemplo n.º 4
0
 private void Load()
 {
     if (Windows.Editors.EditorManager.ScriptEditor.InvokeRequired) {
         Windows.Editors.EditorManager.ScriptEditor.Invoke(new LoadDelegate(Load));
     } else {
         syntaxBox = new Alsing.Windows.Forms.SyntaxBoxControl();
         syntaxBox.AllowDrop = false;
         syntaxBox.Location = new System.Drawing.Point(0, 0);
         syntaxBox.Dock = System.Windows.Forms.DockStyle.Fill;
     }
 }