StatusStripEx, ToolStripEx - lock down size and text properties
This commit is contained in:
parent
bf03f3861a
commit
edc31793cf
|
@ -2669,10 +2669,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.MainStatusBar.Location = new System.Drawing.Point(0, 386);
|
||||
this.MainStatusBar.Name = "MainStatusBar";
|
||||
this.MainStatusBar.ShowItemToolTips = true;
|
||||
this.MainStatusBar.Size = new System.Drawing.Size(470, 22);
|
||||
this.MainStatusBar.SizingGrip = false;
|
||||
this.MainStatusBar.TabIndex = 1;
|
||||
this.MainStatusBar.Text = "0";
|
||||
//
|
||||
// DumpStatusButton
|
||||
//
|
||||
|
|
|
@ -206,9 +206,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.tbbOpenFolder});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(824, 25);
|
||||
this.toolStrip1.TabIndex = 23;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// tbbGroup
|
||||
//
|
||||
|
|
|
@ -201,9 +201,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.tsbExportText});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(992, 25);
|
||||
this.toolStrip1.TabIndex = 8;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// tsbLoggingActive
|
||||
//
|
||||
|
|
|
@ -450,9 +450,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.LoadGameGenieToolbarItem});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(646, 25);
|
||||
this.toolStrip1.TabIndex = 3;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// NewToolBarItem
|
||||
//
|
||||
|
|
|
@ -655,9 +655,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.EraseToolbarItem});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(584, 25);
|
||||
this.toolStrip1.TabIndex = 5;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// NewScriptToolbarItem
|
||||
//
|
||||
|
|
|
@ -727,10 +727,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.NesPPUStatusBar.Location = new System.Drawing.Point(0, 432);
|
||||
this.NesPPUStatusBar.Name = "NesPPUStatusBar";
|
||||
this.NesPPUStatusBar.Padding = new System.Windows.Forms.Padding(1, 0, 19, 0);
|
||||
this.NesPPUStatusBar.Size = new System.Drawing.Size(1139, 25);
|
||||
this.NesPPUStatusBar.SizingGrip = false;
|
||||
this.NesPPUStatusBar.TabIndex = 11;
|
||||
this.NesPPUStatusBar.Text = "statusStrip1";
|
||||
//
|
||||
// toolStripStatusLabel1
|
||||
//
|
||||
|
|
|
@ -1243,9 +1243,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.SplicerStatusLabel});
|
||||
this.TasStatusStrip.Location = new System.Drawing.Point(0, 554);
|
||||
this.TasStatusStrip.Name = "TasStatusStrip";
|
||||
this.TasStatusStrip.Size = new System.Drawing.Size(509, 22);
|
||||
this.TasStatusStrip.TabIndex = 4;
|
||||
this.TasStatusStrip.Text = "statusStrip1";
|
||||
//
|
||||
// MessageStatusLabel
|
||||
//
|
||||
|
|
|
@ -46,7 +46,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.ToolBoxStrip.Location = new System.Drawing.Point(2, 2);
|
||||
this.ToolBoxStrip.Name = "ToolBoxStrip";
|
||||
this.ToolBoxStrip.Padding = new System.Windows.Forms.Padding(0);
|
||||
this.ToolBoxStrip.Size = new System.Drawing.Size(137, 179);
|
||||
this.ToolBoxStrip.Stretch = true;
|
||||
this.ToolBoxStrip.TabIndex = 0;
|
||||
this.ToolBoxStrip.TabStop = true;
|
||||
|
|
|
@ -967,9 +967,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.ErrorIconButton});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(445, 25);
|
||||
this.toolStrip1.TabIndex = 11;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// DoSearchToolButton
|
||||
//
|
||||
|
|
|
@ -281,9 +281,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.MessageLabel});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 356);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(364, 22);
|
||||
this.statusStrip1.TabIndex = 8;
|
||||
this.statusStrip1.Text = "statusStrip1";
|
||||
//
|
||||
// ErrorIconButton
|
||||
//
|
||||
|
@ -322,10 +320,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.toolStripSeparator5});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(364, 25);
|
||||
this.toolStrip1.TabIndex = 4;
|
||||
this.toolStrip1.TabStop = true;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// newToolStripButton
|
||||
//
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace BizHawk.WinForms.Controls
|
||||
|
@ -8,6 +10,12 @@ namespace BizHawk.WinForms.Controls
|
|||
/// </summary>
|
||||
public class StatusStripEx : StatusStrip
|
||||
{
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new Size Size => base.Size;
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new string Text => "";
|
||||
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
base.WndProc(ref m);
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
//credit: http://blogs.msdn.com/b/rickbrew/archive/2006/01/09/511003.aspx
|
||||
|
@ -9,6 +11,12 @@ namespace BizHawk.WinForms.Controls
|
|||
/// </summary>
|
||||
public class ToolStripEx : ToolStrip
|
||||
{
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new Size Size => base.Size;
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new string Text => "";
|
||||
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
base.WndProc(ref m);
|
||||
|
|
Loading…
Reference in New Issue