132 references to ToolStripManager
System.Windows.Forms (132)
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1225
return
ToolStripManager
.ProcessCmdKey(ref msg, keyData);
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
95
ToolStripManager
.ModalMenuFilter.Instance.ShowUnderlines = true;
winforms\Managed\System\WinForms\Control.cs (1)
14188
if (
ToolStripManager
.ProcessMenuKey(ref m)) {
winforms\Managed\System\WinForms\Form.cs (9)
6617
ArrayList childrenToolStrips =
ToolStripManager
.FindMergeableToolStrips(ActiveMdiChildInternal);
6625
ToolStripManager
.RevertMerge(thisToolstrip);
6642
ToolStripManager
.Merge(sourceToolStrip, thisToolstrip);
6678
ToolStripManager
.RevertMergeInternal(mdiControlStrip.MergedMenu,mdiControlStrip,/*revertMDIStuff*/true);
6702
MenuStrip sourceMenuStrip =
ToolStripManager
.GetMainMenuStrip(this);
6707
ToolStripManager
.Merge(this.MdiControlStrip, sourceMenuStrip);
6726
ToolStripManager
.RevertMergeInternal(MdiWindowListStrip.MergedMenu,MdiWindowListStrip,/*revertMdiStuff*/true);
6730
MenuStrip sourceMenuStrip =
ToolStripManager
.GetMainMenuStrip(this);
6741
ToolStripManager
.Merge(MdiWindowListStrip, sourceMenuStrip);
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\ProfessionalColorTable.cs (1)
45
else if (
ToolStripManager
.VisualStylesEnabled) {
winforms\Managed\System\WinForms\ToolStrip.cs (36)
181
ToolStripManager
.CurrentDpi = DeviceDpi;
182
defaultFont =
ToolStripManager
.DefaultFont;
217
ToolStripManager
.ToolStrips.Add(this);
637
defaultFont =
ToolStripManager
.DefaultFont;
906
return (ContainsFocus || (
ToolStripManager
.ModalMenuFilter.InMenuMode &&
ToolStripManager
.ModalMenuFilter.GetActiveToolStrip() == this));
1473
if (!IsDropDown && !
ToolStripManager
.ModalMenuFilter.InMenuMode) {
1686
return
ToolStripManager
.Renderer;
1693
Renderer =
ToolStripManager
.CreateRenderer(RenderMode);
1735
if (currentRendererType ==
ToolStripManager
.ProfessionalRendererType) {
1738
if (currentRendererType ==
ToolStripManager
.SystemRendererType) {
1761
Renderer =
ToolStripManager
.CreateRenderer(value);
2134
if (
ToolStripManager
.ModalMenuFilter.GetActiveToolStrip() == this) {
2137
ToolStripManager
.ModalMenuFilter.RemoveActiveToolStrip(this);
2139
if (exitMenuMode &&
ToolStripManager
.ModalMenuFilter.GetActiveToolStrip() == null) {
2141
ToolStripManager
.ModalMenuFilter.ExitMenuMode();
2144
ToolStripManager
.ToolStrips.Remove(this);
2682
ToolStripManager
.RendererChanged += new EventHandler(OnDefaultRendererChanged);
2692
ToolStripManager
.RendererChanged -= new EventHandler(OnDefaultRendererChanged);
2863
if (
ToolStripManager
.IsMenuKey(keyData)) {
2864
if (!IsDropDown &&
ToolStripManager
.ModalMenuFilter.InMenuMode) {
2866
ToolStripManager
.ModalMenuFilter.MenuKeyToggle = true;
2868
ToolStripManager
.ModalMenuFilter.ExitMenuMode();
2899
handled =
ToolStripManager
.SelectNextToolStrip(this, /*forward*/true);
2902
handled =
ToolStripManager
.SelectNextToolStrip(this, /*forward*/false);
3020
bool inMenuMode =
ToolStripManager
.ModalMenuFilter.InMenuMode;
3027
else if (inMenuMode &&
ToolStripManager
.ModalMenuFilter.GetActiveToolStrip() == this) {
3303
ToolStripManager
.CurrentDpi = DeviceDpi;
3304
defaultFont =
ToolStripManager
.DefaultFont;
3898
ToolStripManager
.CurrentDpi = deviceDpiNew;
3899
defaultFont =
ToolStripManager
.DefaultFont;
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 (6)
131
comboBox.Font =
ToolStripManager
.DefaultFont;
526
ToolStripManager
.ModalMenuFilter.SuspendMenuMode();
536
ToolStripManager
.ModalMenuFilter.ResumeMenuMode();
595
return !object.Equals(this.Font,
ToolStripManager
.DefaultFont);
691
if (!comboBox.Enabled || !
ToolStripManager
.VisualStylesEnabled) {
726
if (AccessibilityImprovements.Level2 && SystemInformation.HighContrast && (comboBox.ContainsFocus || comboBox.MouseIsOver) &&
ToolStripManager
.VisualStylesEnabled) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (21)
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);
1583
if (
ToolStripManager
.IsMenuKey(keyData)) {
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\ToolStripGrip.cs (2)
43
gripThickness =
ToolStripManager
.VisualStylesEnabled ? scaledGripThicknessVisualStylesEnabled : scaledGripThickness;
248
gripThickness =
ToolStripManager
.VisualStylesEnabled ? scaledGripThicknessVisualStylesEnabled : scaledGripThickness;
winforms\Managed\System\WinForms\ToolStripItem.cs (5)
178
internal Font defaultFont =
ToolStripManager
.DefaultFont;
1075
ToolStripManager
.DefaultFont;
2171
return
ToolStripManager
.ShowMenuFocusCues;
3514
ToolStripManager
.CurrentDpi = newDpi;
3515
defaultFont =
ToolStripManager
.DefaultFont;
winforms\Managed\System\WinForms\ToolStripManager.cs (7)
780
ToolStripManager
.NotifyMenuModeChange(/*textStyleChanged*/true, /*activationChanged*/false);
944
ToolStripManager
.NotifyMenuModeChange(/*textStyleChanged*/textStyleChanged, /*activationChanged*/true);
993
if (
ToolStripManager
.IsMenuKey(keyData)) {
1532
if (
ToolStripManager
.IsValidShortcut(keyData)) {
1539
return
ToolStripManager
.ProcessShortcut(ref m, keyData);
1543
ToolStripManager
.ModalMenuFilter.ProcessMenuKeyDown(ref m);
1738
return
ToolStripManager
.ModalMenuFilter.InMenuMode;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (5)
480
if ((value != Keys.None) && !
ToolStripManager
.IsValidShortcut(value)){
989
ToolStripManager
.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
1064
else if (!this.IsTopLevel || (
ToolStripManager
.VisualStylesEnabled)) {
1227
if (
ToolStripManager
.ModalMenuFilter.InMenuMode) {
1429
if (CurrentItem != null && !CurrentItem.IsDisposed && CurrentItem.Selected && CurrentItem.Enabled &&
ToolStripManager
.ModalMenuFilter.InMenuMode) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
90
ToolStripManager
.ToolStripPanels.Add(this);
471
ToolStripManager
.ToolStripPanels.Remove(this);
1176
ToolStripPanel panel =
ToolStripManager
.ToolStripPanelFromPoint(toolStripToDrag, screenLocation);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
108
get { return (ColorTable.UseSystemColors || !
ToolStripManager
.VisualStylesEnabled); }
winforms\Managed\System\WinForms\ToolStripRendererSwitcher.cs (8)
49
return
ToolStripManager
.Renderer;
56
Renderer =
ToolStripManager
.CreateRenderer(RenderMode);
84
if (currentRendererType ==
ToolStripManager
.ProfessionalRendererType) {
87
if (currentRendererType ==
ToolStripManager
.SystemRendererType) {
111
Renderer =
ToolStripManager
.CreateRenderer(value);
131
ToolStripManager
.RendererChanged -= new EventHandler(OnDefaultRendererChanged);
141
ToolStripManager
.RendererChanged += new EventHandler(OnDefaultRendererChanged);
147
ToolStripManager
.RendererChanged -= new EventHandler(OnDefaultRendererChanged);
winforms\Managed\System\WinForms\ToolStripSettings.cs (2)
190
ToolStrip toolStrip =
ToolStripManager
.FindToolStrip(form, toolStripSettings.Name);
228
ToolStrip toolStrip =
ToolStripManager
.FindToolStrip(form, settings.Name);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
550
ToolStripManager
.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (14)
193
FillBackground(g, bounds, (!
ToolStripManager
.VisualStylesEnabled) ?
197
FillBackground(g, bounds, (!
ToolStripManager
.VisualStylesEnabled) ?
200
else if (
ToolStripManager
.VisualStylesEnabled && VisualStyleRenderer.IsElementDefined(VisualStyleElement.Rebar.Band.Normal)) {
207
FillBackground(g, bounds, (!
ToolStripManager
.VisualStylesEnabled) ?
230
if (toolStripDropDown.DropShadowEnabled &&
ToolStripManager
.VisualStylesEnabled) {
240
if (
ToolStripManager
.VisualStylesEnabled) {
261
if (
ToolStripManager
.VisualStylesEnabled && VisualStyleRenderer.IsElementDefined(VisualStyleElement.Rebar.Gripper.Normal)) {
337
if (
ToolStripManager
.VisualStylesEnabled && VisualStyleRenderer.IsElementDefined(VisualStyleElement.Rebar.Chevron.Normal)) {
375
if (item.IsTopLevel && !
ToolStripManager
.VisualStylesEnabled) {
408
Color borderColor =
ToolStripManager
.VisualStylesEnabled ?
421
else if (!
ToolStripManager
.VisualStylesEnabled && (item.RawBackColor != Color.Empty)) {
467
if (
ToolStripManager
.VisualStylesEnabled
571
if (
ToolStripManager
.VisualStylesEnabled
602
if (
ToolStripManager
.VisualStylesEnabled
winforms\Managed\System\WinForms\ToolStripTextBox.cs (3)
256
return Font !=
ToolStripManager
.DefaultFont;
630
this.Font =
ToolStripManager
.DefaultFont;
813
this.Font =
ToolStripManager
.DefaultFont;