29 references to ToolBarState
System.Windows.Forms (29)
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (29)
113
private static
ToolBarState
GetSplitButtonToolBarState(ToolStripSplitButton button, bool dropDownButton) {
114
ToolBarState
state =
ToolBarState
.Normal;
118
state =
ToolBarState
.Disabled;
122
state =
ToolBarState
.Pressed;
125
state =
ToolBarState
.Hot;
130
state =
ToolBarState
.Pressed;
133
state =
ToolBarState
.Hot;
143
private static
ToolBarState
GetToolBarState(ToolStripItem item) {
144
ToolBarState
state =
ToolBarState
.Normal;
147
state =
ToolBarState
.Disabled;
151
state =
ToolBarState
.Hot; // we'd prefer HotChecked here, but Color Theme uses the same color as Checked
154
state =
ToolBarState
.Checked;
158
state =
ToolBarState
.Pressed;
161
state =
ToolBarState
.Hot;
294
RenderSmall3DBorderInternal(g, bounds,
ToolBarState
.Hot, (e.ToolStrip.RightToLeft == RightToLeft.Yes));
385
ToolBarState
state = GetToolBarState(item);
529
ToolBarState
state = GetSplitButtonToolBarState(splitButton, false);
543
if ((state ==
ToolBarState
.Pressed) || (state ==
ToolBarState
.Hot)) {
567
ToolBarState
state = GetToolBarState(item);
589
if ((parent != null) && (state !=
ToolBarState
.Checked) && (item.BackColor != parent.BackColor)) {
661
private void RenderSmall3DBorderInternal (Graphics g, Rectangle bounds,
ToolBarState
state, bool rightToLeft) {
662
if ((state ==
ToolBarState
.Hot) ||(state ==
ToolBarState
.Pressed) || (state ==
ToolBarState
.Checked)) {
664
topPen = (state ==
ToolBarState
.Hot) ? SystemPens.ButtonHighlight : SystemPens.ButtonShadow;
665
bottomPen = (state ==
ToolBarState
.Hot)? SystemPens.ButtonShadow : SystemPens.ButtonHighlight;