public TestForm() { InitializeComponent(); this.renderView = new AnyCAD.Presentation.RenderWindow3d(); this.renderViewXZ = new Presentation.RenderWindow3d(); this.renderViewYZ = new Presentation.RenderWindow3d(); this.renderViewDraw = new Presentation.RenderWindow3d(); //初始化视窗大小 System.Drawing.Size size = this.panel1.ClientSize; Size sizeXZ = panel2.ClientSize; Size sizeYZ = panel3.ClientSize; Size sizeDraw = panel4.ClientSize; this.renderView.Size = size; renderViewXZ.Size = sizeXZ; renderViewYZ.Size = sizeYZ; renderViewDraw.Size = sizeDraw; this.renderView.TabIndex = 1; renderViewXZ.TabIndex = 2; renderViewYZ.TabIndex = 3; this.panel1.Controls.Add(this.renderView); panel2.Controls.Add(renderViewXZ); panel3.Controls.Add(renderViewYZ); panel4.Controls.Add(renderViewDraw); this.renderView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnRenderWindow_MouseClick); renderViewDraw.MouseClick += new MouseEventHandler(OnRenderWindow_MouseClick); GlobalInstance.EventListener.OnChangeCursorEvent += OnChangeCursor; GlobalInstance.EventListener.OnSelectElementEvent += OnSelectElement; }
public FormMain() { InitializeComponent(); // // Create renderView // this.renderView = new AnyCAD.Presentation.RenderWindow3d(); this.renderView.Location = new System.Drawing.Point(0, 27); this.renderView.Size = this.Size; this.renderView.TabIndex = 1; this.Controls.Add(this.renderView); }
public FormMain() { InitializeComponent(); this.renderView = new AnyCAD.Presentation.RenderWindow3d(); System.Drawing.Size size = this.panel1.ClientSize; this.renderView.Size = size; this.renderView.TabIndex = 1; this.panel1.Controls.Add(this.renderView); this.renderView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnRenderWindow_MouseClick); GlobalInstance.EventListener.OnChangeCursorEvent += OnChangeCursor; GlobalInstance.EventListener.OnSelectElementEvent += OnSelectElement; }
public FormMain() { InitializeComponent(); //MessageBox.Show("AnyCAD .Net SDK PRO"); // // Create renderView // this.renderView = new AnyCAD.Presentation.RenderWindow3d(); //this.renderView.Location = new System.Drawing.Point(0, 27); System.Drawing.Size size = this.panel1.ClientSize; this.renderView.Size = size; this.renderView.TabIndex = 1; this.panel1.Controls.Add(this.renderView); this.renderView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnRenderWindow_MouseClick); GlobalInstance.EventListener.OnChangeCursorEvent += OnChangeCursor; GlobalInstance.EventListener.OnSelectElementEvent += OnSelectElement; }