1 instantiation of ModalMenuFilter
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
758
_instance = new
ModalMenuFilter
();
63 references to ModalMenuFilter
System.Windows.Forms (63)
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
95
ToolStripManager.
ModalMenuFilter
.Instance.ShowUnderlines = true;
winforms\Managed\System\WinForms\MenuStrip.cs (3)
221
ToolStripManager.
ModalMenuFilter
.SetActiveToolStrip(this, /*menuKeyPressed=*/true);
241
if (ToolStripManager.
ModalMenuFilter
.InMenuMode) {
250
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
winforms\Managed\System\WinForms\ToolStrip.cs (17)
906
return (ContainsFocus || (ToolStripManager.
ModalMenuFilter
.InMenuMode && ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() == this));
1473
if (!IsDropDown && !ToolStripManager.
ModalMenuFilter
.InMenuMode) {
2134
if (ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() == this) {
2137
ToolStripManager.
ModalMenuFilter
.RemoveActiveToolStrip(this);
2139
if (exitMenuMode && ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() == null) {
2141
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
2864
if (!IsDropDown && ToolStripManager.
ModalMenuFilter
.InMenuMode) {
2866
ToolStripManager.
ModalMenuFilter
.MenuKeyToggle = true;
2868
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
3020
bool inMenuMode = ToolStripManager.
ModalMenuFilter
.InMenuMode;
3027
else if (inMenuMode && ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() == this) {
4065
if (wasInMenuMode == ToolStripManager.
ModalMenuFilter
.InMenuMode) {
4074
ToolStripManager.
ModalMenuFilter
.MenuKeyToggle = false;
4079
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
4279
ToolStripManager.
ModalMenuFilter
.SetActiveToolStrip(this, /*menuKeyPressed=*/false);
5183
ownerToolStrip.BeginInvoke(new BooleanMethodInvoker(ownerToolStrip.RestoreFocusInternal), new object[]{ ToolStripManager.
ModalMenuFilter
.InMenuMode } );
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
526
ToolStripManager.
ModalMenuFilter
.SuspendMenuMode();
536
ToolStripManager.
ModalMenuFilter
.ResumeMenuMode();
winforms\Managed\System\WinForms\ToolStripDropDown.cs (20)
1169
if (ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() == null) {
1170
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
1490
if (ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() != OwnerToolStrip) {
1491
ToolStripManager.
ModalMenuFilter
.SetActiveToolStrip(OwnerToolStrip);
1499
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
1506
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
1561
if (ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() != toplevelToolStrip) {
1562
ToolStripManager.
ModalMenuFilter
.SetActiveToolStrip(toplevelToolStrip);
1590
ToolStripManager.
ModalMenuFilter
.MenuKeyToggle = true;
1592
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
1671
ToolStripManager.
ModalMenuFilter
.SetActiveToolStrip(this);
1672
UnsafeNativeMethods.SetWindowLong(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT, ToolStripManager.
ModalMenuFilter
.ActiveHwnd);
1922
ToolStripManager.
ModalMenuFilter
.RemoveActiveToolStrip(this);
1926
ToolStripManager.
ModalMenuFilter
.ExitMenuMode();
1929
ToolStripManager.
ModalMenuFilter
.RemoveActiveToolStrip(this);
1999
ToolStripManager.
ModalMenuFilter
.RemoveActiveToolStrip(this);
2143
if (ToolStripManager.
ModalMenuFilter
.GetActiveToolStrip() != this) {
2145
ToolStripManager.
ModalMenuFilter
.SetActiveToolStrip(this);
2229
Debug.WriteLineIf(DropDownActivateDebug.TraceVerbose, "Sending WM_NCACTIVATE to toplevel hwnd" + ToolStripManager.
ModalMenuFilter
.ActiveHwnd);
2231
HandleRef activeHwndHandleRef = ToolStripManager.
ModalMenuFilter
.ActiveHwnd;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
129
ToolStripManager.
ModalMenuFilter
.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
148
ToolStripManager.
ModalMenuFilter
.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
winforms\Managed\System\WinForms\ToolStripManager.cs (14)
228
if (
ModalMenuFilter
.InMenuMode) {
229
if (
ModalMenuFilter
.GetActiveToolStrip() == start) {
230
ModalMenuFilter
.RemoveActiveToolStrip(start);
233
ModalMenuFilter
.SetActiveToolStrip(toolStrip);
753
private static
ModalMenuFilter
_instance;
755
internal static
ModalMenuFilter
Instance {
998
ModalMenuFilter
.Instance.ShowUnderlines = true;
1465
return
ModalMenuFilter
.Instance.ShowUnderlines;
1543
ToolStripManager.
ModalMenuFilter
.ProcessMenuKeyDown(ref m);
1721
ModalMenuFilter
.MenuKeyToggle = false;
1728
ModalMenuFilter
.MenuKeyToggle = false;
1738
return ToolStripManager.
ModalMenuFilter
.InMenuMode;
1741
if (menuStripToActivate != null && !
ModalMenuFilter
.MenuKeyToggle) {
1755
ModalMenuFilter
.MenuKeyToggle = false;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (3)
989
ToolStripManager.
ModalMenuFilter
.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
1227
if (ToolStripManager.
ModalMenuFilter
.InMenuMode) {
1429
if (CurrentItem != null && !CurrentItem.IsDisposed && CurrentItem.Selected && CurrentItem.Enabled && ToolStripManager.
ModalMenuFilter
.InMenuMode) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
550
ToolStripManager.
ModalMenuFilter
.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);