增加toolStripContainer.TopToolStripPanel高度,确保按钮换行后能完全显示
This commit is contained in:
@@ -114,10 +114,12 @@ namespace JoyD.Windows.CS
|
|||||||
this.toolStripContainer.Size = new System.Drawing.Size(309, 450);
|
this.toolStripContainer.Size = new System.Drawing.Size(309, 450);
|
||||||
this.toolStripContainer.TabIndex = 0;
|
this.toolStripContainer.TabIndex = 0;
|
||||||
this.toolStripContainer.Text = "toolStripContainer";
|
this.toolStripContainer.Text = "toolStripContainer";
|
||||||
|
this.toolStripContainer.TopToolStripPanel.AutoScroll = false;
|
||||||
//
|
//
|
||||||
// toolStripContainer.TopToolStripPanel
|
// toolStripContainer.TopToolStripPanel
|
||||||
//
|
//
|
||||||
this.toolStripContainer.TopToolStripPanel.Controls.Add(this.toolStrip);
|
this.toolStripContainer.TopToolStripPanel.Controls.Add(this.toolStrip);
|
||||||
|
this.toolStripContainer.TopToolStripPanel.Size = new System.Drawing.Size(309, 100); // 增加TopToolStripPanel的高度,确保能显示多行按钮
|
||||||
//
|
//
|
||||||
// dataGridViewTempDiff
|
// dataGridViewTempDiff
|
||||||
//
|
//
|
||||||
@@ -202,6 +204,7 @@ namespace JoyD.Windows.CS
|
|||||||
// toolStrip
|
// toolStrip
|
||||||
//
|
//
|
||||||
this.toolStrip.AllowDrop = true;
|
this.toolStrip.AllowDrop = true;
|
||||||
|
this.toolStrip.AutoSize = true;
|
||||||
this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
|
this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
|
||||||
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
|
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
|
||||||
this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||||
|
|||||||
Reference in New Issue
Block a user