namespace LB_VisionControl { partial class UserHSmartWindowControl { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region 组件设计器生成的代码 /// /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// private void InitializeComponent() { components = new System.ComponentModel.Container(); RightContextMenuStrip = new ContextMenuStrip(components); resizeImageStripMenuItem = new ToolStripMenuItem(); autoSizeStripMenuItem = new ToolStripMenuItem(); mouseIndexStripMenuItem = new ToolStripMenuItem(); BtmStatusStrip = new StatusStrip(); StatusLabel = new ToolStripStatusLabel(); pnl = new Panel(); hWindowControl = new HalconDotNet.HSmartWindowControl(); RightContextMenuStrip.SuspendLayout(); BtmStatusStrip.SuspendLayout(); pnl.SuspendLayout(); SuspendLayout(); // // RightContextMenuStrip // RightContextMenuStrip.ImageScalingSize = new Size(20, 20); RightContextMenuStrip.Items.AddRange(new ToolStripItem[] { resizeImageStripMenuItem, autoSizeStripMenuItem, mouseIndexStripMenuItem }); RightContextMenuStrip.Name = "RightContextMenuStrip"; RightContextMenuStrip.Size = new Size(169, 82); // // resizeImageStripMenuItem // resizeImageStripMenuItem.Name = "resizeImageStripMenuItem"; resizeImageStripMenuItem.Size = new Size(168, 26); resizeImageStripMenuItem.Text = "重新缩放图像"; resizeImageStripMenuItem.Click += resizeImageStripMenuItem_Click; // // autoSizeStripMenuItem // autoSizeStripMenuItem.Checked = true; autoSizeStripMenuItem.CheckState = CheckState.Checked; autoSizeStripMenuItem.Name = "autoSizeStripMenuItem"; autoSizeStripMenuItem.Size = new Size(168, 26); autoSizeStripMenuItem.Text = "图像自动适应"; autoSizeStripMenuItem.Click += autoSizeStripMenuItem_Click; // // mouseIndexStripMenuItem // mouseIndexStripMenuItem.Name = "mouseIndexStripMenuItem"; mouseIndexStripMenuItem.Size = new Size(168, 26); mouseIndexStripMenuItem.Text = "鼠标索引像素"; mouseIndexStripMenuItem.Click += mouseIndexStripMenuItem_Click; // // BtmStatusStrip // BtmStatusStrip.ImageScalingSize = new Size(20, 20); BtmStatusStrip.Items.AddRange(new ToolStripItem[] { StatusLabel }); BtmStatusStrip.Location = new Point(0, 280); BtmStatusStrip.Name = "BtmStatusStrip"; BtmStatusStrip.Padding = new Padding(1, 0, 20, 0); BtmStatusStrip.Size = new Size(342, 22); BtmStatusStrip.TabIndex = 44; BtmStatusStrip.Text = "statusStrip1"; // // StatusLabel // StatusLabel.Name = "StatusLabel"; StatusLabel.Size = new Size(0, 16); // // pnl // pnl.Controls.Add(hWindowControl); pnl.Dock = DockStyle.Fill; pnl.Location = new Point(0, 0); pnl.Margin = new Padding(4); pnl.Name = "pnl"; pnl.Size = new Size(342, 280); pnl.TabIndex = 45; // // hWindowControl // hWindowControl.AutoSizeMode = AutoSizeMode.GrowAndShrink; hWindowControl.AutoValidate = AutoValidate.EnableAllowFocusChange; hWindowControl.BackColor = Color.Black; hWindowControl.ContextMenuStrip = RightContextMenuStrip; hWindowControl.Dock = DockStyle.Fill; hWindowControl.HDoubleClickToFitContent = true; hWindowControl.HDrawingObjectsModifier = HalconDotNet.HSmartWindowControl.DrawingObjectsModifier.None; hWindowControl.HImagePart = new Rectangle(-321, -152, 3233, 2247); hWindowControl.HKeepAspectRatio = true; hWindowControl.HMoveContent = true; hWindowControl.HZoomContent = HalconDotNet.HSmartWindowControl.ZoomContent.WheelForwardZoomsIn; hWindowControl.Location = new Point(0, 0); hWindowControl.Margin = new Padding(5); hWindowControl.Name = "hWindowControl"; hWindowControl.Size = new Size(342, 280); hWindowControl.TabIndex = 43; hWindowControl.WindowSize = new Size(342, 280); hWindowControl.HMouseMove += hWindowControl_HMouseMove; hWindowControl.HMouseDown += hWindowControl_HMouseDown; hWindowControl.HMouseUp += hWindowControl_HMouseUp; hWindowControl.HMouseDoubleClick += hWindowControl_HMouseDoubleClick; // // UserHSmartWindowControl // AutoScaleDimensions = new SizeF(120F, 120F); AutoScaleMode = AutoScaleMode.Dpi; Controls.Add(pnl); Controls.Add(BtmStatusStrip); Margin = new Padding(5); Name = "UserHSmartWindowControl"; Size = new Size(342, 302); Load += UserHSmartWindowControl_Load; SizeChanged += UserHSmartWindowControl_SizeChanged; MouseWheel += UserHSmartWindowControl_HMouseWheel; RightContextMenuStrip.ResumeLayout(false); BtmStatusStrip.ResumeLayout(false); BtmStatusStrip.PerformLayout(); pnl.ResumeLayout(false); ResumeLayout(false); PerformLayout(); } #endregion private System.Windows.Forms.StatusStrip BtmStatusStrip; private System.Windows.Forms.ToolStripStatusLabel StatusLabel; private ContextMenuStrip RightContextMenuStrip; private ToolStripMenuItem autoSizeStripMenuItem; private ToolStripMenuItem mouseIndexStripMenuItem; private ToolStripMenuItem resizeImageStripMenuItem; private Panel pnl; private HalconDotNet.HSmartWindowControl hWindowControl; } }