ToolStripEx - don't have a size option (toolstrips flow), or location (they are always 0,0)
This commit is contained in:
parent
52f2596492
commit
bf03f3861a
|
@ -139,9 +139,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
// MenuStrip
|
||||
//
|
||||
this.MenuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.MenuStrip.Name = "MenuStrip";
|
||||
this.MenuStrip.Size = new System.Drawing.Size(675, 24);
|
||||
this.MenuStrip.TabIndex = 9;
|
||||
this.MenuStrip.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -406,9 +406,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.amstradCPCToolStripMenuItem,
|
||||
this.HelpSubMenu});
|
||||
this.MainformMenu.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
|
||||
this.MainformMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.MainformMenu.Name = "MainformMenu";
|
||||
this.MainformMenu.Size = new System.Drawing.Size(470, 89);
|
||||
this.MainformMenu.TabIndex = 0;
|
||||
this.MainformMenu.Text = "menuStrip1";
|
||||
this.MainformMenu.MenuActivate += new System.EventHandler(this.MainformMenu_MenuActivate);
|
||||
|
|
|
@ -149,9 +149,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.FileSubMenu,
|
||||
this.OptionsSubMenu,
|
||||
this.helpToolStripMenuItem});
|
||||
this.BotMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.BotMenu.Name = "BotMenu";
|
||||
this.BotMenu.Size = new System.Drawing.Size(707, 24);
|
||||
this.BotMenu.TabIndex = 0;
|
||||
this.BotMenu.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -63,9 +63,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.FileSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(992, 24);
|
||||
this.menuStrip1.TabIndex = 2;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -165,9 +165,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.FileSubMenu,
|
||||
this.CheatsSubMenu,
|
||||
this.OptionsSubMenu});
|
||||
this.CheatsMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.CheatsMenu.Name = "CheatsMenu";
|
||||
this.CheatsMenu.Size = new System.Drawing.Size(646, 24);
|
||||
this.CheatsMenu.TabIndex = 2;
|
||||
this.CheatsMenu.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -70,9 +70,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem,
|
||||
this.DebugSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(767, 24);
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -159,9 +159,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(1078, 24);
|
||||
this.menuStrip1.TabIndex = 11;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -105,9 +105,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.EditMenuItem,
|
||||
this.OptionsSubMenu,
|
||||
this.SettingsSubMenu});
|
||||
this.HexMenuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.HexMenuStrip.Name = "HexMenuStrip";
|
||||
this.HexMenuStrip.Size = new System.Drawing.Size(584, 24);
|
||||
this.HexMenuStrip.TabIndex = 1;
|
||||
this.HexMenuStrip.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -197,9 +197,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.ScriptSubMenu,
|
||||
this.SettingsSubMenu,
|
||||
this.HelpSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(584, 24);
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -144,9 +144,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.FileSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(437, 24);
|
||||
this.menuStrip1.TabIndex = 5;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -133,9 +133,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.FileSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(679, 24);
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -470,10 +470,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.FileSubMenu,
|
||||
this.PatternSubMenu,
|
||||
this.SettingsSubMenu});
|
||||
this.NesPPUMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.NesPPUMenu.Name = "NesPPUMenu";
|
||||
this.NesPPUMenu.Padding = new System.Windows.Forms.Padding(8, 2, 0, 2);
|
||||
this.NesPPUMenu.Size = new System.Drawing.Size(1139, 28);
|
||||
this.NesPPUMenu.TabIndex = 10;
|
||||
this.NesPPUMenu.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -61,9 +61,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.PceBgViewerMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.ViewerSubMenu});
|
||||
this.PceBgViewerMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.PceBgViewerMenu.Name = "PceBgViewerMenu";
|
||||
this.PceBgViewerMenu.Size = new System.Drawing.Size(676, 24);
|
||||
this.PceBgViewerMenu.TabIndex = 2;
|
||||
this.PceBgViewerMenu.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -247,9 +247,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
// SoundMenuStrip
|
||||
//
|
||||
this.SoundMenuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.SoundMenuStrip.Name = "SoundMenuStrip";
|
||||
this.SoundMenuStrip.Size = new System.Drawing.Size(787, 24);
|
||||
this.SoundMenuStrip.TabIndex = 4;
|
||||
this.SoundMenuStrip.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -126,9 +126,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.FileSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(810, 24);
|
||||
this.menuStrip1.TabIndex = 8;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -115,9 +115,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.FileSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(572, 24);
|
||||
this.menuStrip1.TabIndex = 5;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -275,9 +275,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(1086, 24);
|
||||
this.menuStrip1.TabIndex = 33;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -214,9 +214,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.SettingsSubMenu,
|
||||
this.ColumnsSubMenu,
|
||||
this.HelpSubMenu});
|
||||
this.TASMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.TASMenu.Name = "TASMenu";
|
||||
this.TASMenu.Size = new System.Drawing.Size(509, 24);
|
||||
this.TASMenu.TabIndex = 0;
|
||||
this.TASMenu.Text = "menuStrip1";
|
||||
this.TASMenu.MenuActivate += new System.EventHandler(this.TASMenu_MenuActivate);
|
||||
|
|
|
@ -178,9 +178,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.toolStripMenuItem1,
|
||||
this.KeyPadSubMenu,
|
||||
this.SettingsSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(355, 24);
|
||||
this.menuStrip1.TabIndex = 0;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -131,9 +131,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.FileSubMenu,
|
||||
this.EditSubMenu,
|
||||
this.OptionsSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(644, 24);
|
||||
this.menuStrip1.TabIndex = 2;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -101,9 +101,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.PadMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.PadsSubMenu,
|
||||
this.SettingsSubMenu});
|
||||
this.PadMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.PadMenu.Name = "PadMenu";
|
||||
this.PadMenu.Size = new System.Drawing.Size(452, 24);
|
||||
this.PadMenu.TabIndex = 7;
|
||||
this.PadMenu.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -307,9 +307,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.settingsToolStripMenuItem,
|
||||
this.searchToolStripMenuItem,
|
||||
this.optionsToolStripMenuItem});
|
||||
this.RamSearchMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.RamSearchMenu.Name = "RamSearchMenu";
|
||||
this.RamSearchMenu.Size = new System.Drawing.Size(445, 24);
|
||||
this.RamSearchMenu.TabIndex = 4;
|
||||
this.RamSearchMenu.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -470,9 +470,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.FileSubMenu,
|
||||
this.WatchesSubMenu,
|
||||
this.OptionsSubMenu});
|
||||
this.RamWatchMenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.RamWatchMenu.Name = "RamWatchMenu";
|
||||
this.RamWatchMenu.Size = new System.Drawing.Size(364, 24);
|
||||
this.RamWatchMenu.TabIndex = 3;
|
||||
this.RamWatchMenu.Text = "menuStrip1";
|
||||
//
|
||||
|
|
|
@ -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 MenuStripEx : MenuStrip
|
||||
{
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new Size Size => base.Size;
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new Point Location => new Point(0, 0);
|
||||
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
base.WndProc(ref m);
|
||||
|
|
Loading…
Reference in New Issue