Example #1
0
 void InitializeGlControl()
 {
     //
     // visualizerWinMain
     // copied from designr so VS will not crash
     this.visualizerWinMain           = new GrblCNC.VisualizerWin();
     this.visualizerWinMain.BackColor = System.Drawing.Color.Black;
     this.visualizerWinMain.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.visualizerWinMain.Location  = new System.Drawing.Point(0, 0);
     this.visualizerWinMain.Name      = "visualizerWinMain";
     this.visualizerWinMain.Size      = new System.Drawing.Size(674, 440);
     this.visualizerWinMain.TabIndex  = 0;
     this.visualizerWinMain.VSync     = false;
     this.splitTopRight.Panel1.Controls.Add(this.visualizerWinMain);
     Global.visualizeWindow = this.visualizerWinMain;
     visualizerOverlay      = new VisualizerOverlay(visualizerWinMain);
 }
Example #2
0
 public VisualizerOverlay(VisualizerWin viswin)
 {
     this.viswin = viswin;
     font        = new Font("Courier New", 12, FontStyle.Bold);
 }