设置toolStrip和tempDiffToolStrip为可拖动

This commit is contained in:
zqm
2025-11-10 08:22:05 +08:00
parent d77fb62b71
commit 40da17055c

View File

@@ -120,7 +120,9 @@ namespace JoyD.Windows.CS
// //
// toolStrip // toolStrip
// //
this.toolStrip.AllowDrop = true;
this.toolStrip.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible;
this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20); this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.btnDrawRegion, this.btnDrawRegion,
@@ -167,7 +169,9 @@ namespace JoyD.Windows.CS
// //
// tempDiffToolStrip // tempDiffToolStrip
// //
this.tempDiffToolStrip.AllowDrop = true;
this.tempDiffToolStrip.Dock = System.Windows.Forms.DockStyle.None; this.tempDiffToolStrip.Dock = System.Windows.Forms.DockStyle.None;
this.tempDiffToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible;
this.tempDiffToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20); this.tempDiffToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
this.tempDiffToolStrip.Location = new System.Drawing.Point(54, 140); this.tempDiffToolStrip.Location = new System.Drawing.Point(54, 140);
this.tempDiffToolStrip.Name = "tempDiffToolStrip"; this.tempDiffToolStrip.Name = "tempDiffToolStrip";