63 instantiations of VisualStyleRenderer
System.Windows.Forms (27)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (1)
293t_visualStyleRenderer = new VisualStyleRenderer(s_buttonElement.ClassName, s_buttonElement.Part, state);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (1)
355t_visualStyleRenderer = new VisualStyleRenderer(s_checkBoxElement.ClassName, part, state);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (1)
331t_visualStyleRenderer = new VisualStyleRenderer(s_radioElement.ClassName, part, state);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
122t_visualStyleRenderer = new VisualStyleRenderer(visualStyleElement.ClassName, visualStyleElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs (1)
19s_visualStyleRenderer ??= new VisualStyleRenderer(s_buttonElement);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs (1)
19s_visualStyleRenderer ??= new VisualStyleRenderer(s_checkBoxElement);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
19s_visualStyleRenderer ??= new VisualStyleRenderer(s_headerElement);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellRenderer.cs (3)
24t_visualStyleRenderer ??= new VisualStyleRenderer(s_comboBoxReadOnlyButton); 45t_visualStyleRenderer = new VisualStyleRenderer(s_comboBoxBorder); 81t_visualStyleRenderer = new VisualStyleRenderer(visualStyleElement.ClassName, visualStyleElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.DataGridViewHeaderCellRenderer.cs (1)
18s_visualStyleRenderer ??= new VisualStyleRenderer(VisualStyleElement.Header.Item.Normal);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (1)
19s_visualStyleRenderer ??= new VisualStyleRenderer(s_headerElement);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellRenderer.cs (1)
19s_visualStyleRenderer ??= new VisualStyleRenderer(s_headerElement);
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
372t_visualStyleRenderer = new VisualStyleRenderer(s_groupBoxElement.ClassName, part, state);
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
90VisualStyleRenderer vsr = new(VisualStyleElement.Header.Item.Normal);
System\Windows\Forms\Controls\ProgressBar\ProgressBarRenderer.cs (1)
95t_visualStyleRenderer = new VisualStyleRenderer(element);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1694VisualStyleRenderer explorerTreeRenderer = new(element); 1700VisualStyleRenderer explorerTreeRenderer = new(VisualStyleElement.ExplorerTreeView.Glyph.Opened);
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (1)
156t_visualStyleRenderer = new VisualStyleRenderer(element.ClassName, element.Part, state);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
92t_visualStyleRenderer = new VisualStyleRenderer(s_textBoxElement.ClassName, s_textBoxElement.Part, state);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
59t_renderer = new VisualStyleRenderer(VisualStyleElement.ToolBar.Button.Normal);
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (1)
210t_visualStyleRenderer = new VisualStyleRenderer(element.ClassName, element.Part, state);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
529VisualStyleRenderer vsr = new(VisualStyleElement.TextBox.TextEdit.Normal);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
264VisualStyleRenderer vsr = new(_mouseOver == ButtonID.Up
System\Windows\Forms\Form.cs (1)
4406_sizeGripRenderer ??= new VisualStyleRenderer(VisualStyleElement.Status.Gripper.Normal);
System\Windows\Forms\Scrolling\ScrollBarRenderer.cs (1)
149t_visualStyleRenderer = new VisualStyleRenderer(element.ClassName, element.Part, state);
System\Windows\Forms\VisualStyles\VisualStyleInformation.cs (1)
196t_visualStyleRenderer = new VisualStyleRenderer(element);
System.Windows.Forms.Tests (36)
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (36)
28VisualStyleRenderer renderer = new(element.ClassName, element.Part, element.State); 39Assert.Throws<ArgumentNullException>("className", () => new VisualStyleRenderer(null, 0, 0)); 55Assert.Throws<ArgumentException>(() => new VisualStyleRenderer(element.ClassName, element.Part, element.State)); 62VisualStyleRenderer renderer = new(element); 73Assert.Throws<NullReferenceException>(() => new VisualStyleRenderer(null)); 80Assert.Throws<ArgumentException>(() => new VisualStyleRenderer(element)); 135VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 169VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 179VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 204VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 214VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 222VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 232VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 242VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 266VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 279VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 292VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 302VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 312VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 324VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 351VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 378VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 391VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 417VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 448VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 479VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 489VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 501VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 515VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 528VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 536VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 548VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 556VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 563VisualStyleRenderer renderer = new("BUTTON", 0, 0); 570VisualStyleRenderer renderer = new("TEXTSTYLE", 1, 0); 582VisualStyleRenderer renderer = new("TEXTSTYLE", 1, 0);
121 references to VisualStyleRenderer
System.Windows.Forms (65)
System\Windows\Forms\Application.cs (1)
555=> ComCtlSupportsVisualStyles && VisualStyleRenderer.IsSupported;
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (1)
16private static VisualStyleRenderer? t_visualStyleRenderer;
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 346&& VisualStyleRenderer.IsCombinationDefined(
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 324&& VisualStyleRenderer.IsCombinationDefined(s_radioElement.ClassName, VisualStyleElement.Button.RadioButton.HighContrastDisabledPart))
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 24public static bool IsSupported => VisualStyleRenderer.IsSupported; // no downlevel support
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs (2)
13private static VisualStyleRenderer? s_visualStyleRenderer; 15public static VisualStyleRenderer DataGridViewButtonRenderer
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs (2)
13private static VisualStyleRenderer? s_visualStyleRenderer; 15public static VisualStyleRenderer CheckBoxRenderer
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (2)
13private static VisualStyleRenderer? s_visualStyleRenderer; 15public static VisualStyleRenderer VisualStyleRenderer
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
407VisualStyleRenderer.IsElementDefined(VisualStyleElement.ComboBox.ReadOnlyButton.Normal);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellRenderer.cs (2)
14private static VisualStyleRenderer? t_visualStyleRenderer; 20public static VisualStyleRenderer VisualStyleRenderer
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.DataGridViewHeaderCellRenderer.cs (2)
12private static VisualStyleRenderer? s_visualStyleRenderer; 14public static VisualStyleRenderer VisualStyleRenderer
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (2)
13private static VisualStyleRenderer? s_visualStyleRenderer; 15public static VisualStyleRenderer VisualStyleRenderer
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellRenderer.cs (2)
13private static VisualStyleRenderer? s_visualStyleRenderer; 15public static VisualStyleRenderer VisualStyleRenderer
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 363&& VisualStyleRenderer.IsCombinationDefined(
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
90VisualStyleRenderer vsr = new(VisualStyleElement.Header.Item.Normal);
System\Windows\Forms\Controls\ProgressBar\ProgressBarRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 22public static bool IsSupported => VisualStyleRenderer.IsSupported; // no downlevel support
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
1694VisualStyleRenderer explorerTreeRenderer = new(element); 1700VisualStyleRenderer explorerTreeRenderer = new(VisualStyleElement.ExplorerTreeView.Glyph.Opened); 1706VisualStyleRenderer explorerTreeRenderer,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1330internal bool IsExplorerTreeSupported => OwnerGrid.CanShowVisualStyleGlyphs && VisualStyleRenderer.IsSupported;
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 22public static bool IsSupported => VisualStyleRenderer.IsSupported; // no downlevel support
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 23public static bool IsSupported => VisualStyleRenderer.IsSupported; // no downlevel support
System\Windows\Forms\Controls\ToolStrips\ProfessionalColors.cs (1)
217if (VisualStyleRenderer.IsSupported)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (18)
12private static VisualStyleRenderer? t_renderer; 51private static VisualStyleRenderer? VisualStyleRenderer 57if (t_renderer is null && VisualStyleRenderer.IsElementDefined(VisualStyleElement.ToolBar.Button.Normal)) 218else if (ToolStripManager.VisualStylesEnabled && VisualStyleRenderer.IsElementDefined(VisualStyleElement.Rebar.Band.Normal)) 220VisualStyleRenderer vsRenderer = VisualStyleRenderer!; 282if (ToolStripManager.VisualStylesEnabled && VisualStyleRenderer.IsElementDefined(VisualStyleElement.Rebar.Gripper.Normal)) 284VisualStyleRenderer vsRenderer = VisualStyleRenderer!; 383if (ToolStripManager.VisualStylesEnabled && VisualStyleRenderer.IsElementDefined(VisualStyleElement.Rebar.Chevron.Normal)) 386VisualStyleRenderer vsRenderer = VisualStyleRenderer!; 533&& VisualStyleRenderer.IsElementDefined(splitButtonDropDownPart) 534&& VisualStyleRenderer.IsElementDefined(splitButtonPart)) 536VisualStyleRenderer vsRenderer = VisualStyleRenderer!; 652&& VisualStyleRenderer.IsElementDefined(toolBarElement)) 654VisualStyleRenderer vsRenderer = VisualStyleRenderer!; 696&& (VisualStyleRenderer.IsElementDefined(separator))) 698VisualStyleRenderer vsRenderer = VisualStyleRenderer!; 774VisualStyleRenderer vsRenderer = VisualStyleRenderer!; 801VisualStyleRenderer? vsRenderer = VisualStyleRenderer;
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 23public static bool IsSupported => VisualStyleRenderer.IsSupported; // no downlevel support
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
529VisualStyleRenderer vsr = new(VisualStyleElement.TextBox.TextEdit.Normal);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
264VisualStyleRenderer vsr = new(_mouseOver == ButtonID.Up
System\Windows\Forms\Form.cs (1)
161private VisualStyleRenderer? _sizeGripRenderer;
System\Windows\Forms\Scrolling\ScrollBarRenderer.cs (2)
16private static VisualStyleRenderer? t_visualStyleRenderer; 22public static bool IsSupported => VisualStyleRenderer.IsSupported; // no downlevel support
System\Windows\Forms\VisualStyles\VisualStyleElement.cs (1)
7/// Encapsulates the class, part and state of the "element" you wish to draw using the <see cref="VisualStyleRenderer"/>.
System\Windows\Forms\VisualStyles\VisualStyleInformation.cs (2)
22private static VisualStyleRenderer? t_visualStyleRenderer; 192private static VisualStyleRenderer SetParameters(VisualStyleElement element)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
46if (Item is ToolStripComboBox && VisualStyles.VisualStyleRenderer.IsSupported)
System.Windows.Forms.Tests (55)
System\Windows\Forms\DataGridViewHeaderCellTests.cs (16)
3845yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3848yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3851yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3854yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3857yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3860yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 4004ButtonState expected = VisualStyleRenderer.IsSupported ? ButtonState.Pushed : ButtonState.Normal; 4040Assert.Equal(enableHeadersVisualStyles && VisualStyleRenderer.IsSupported, cell.MouseLeaveUnsharesRow(rowIndex)); 4141yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4144yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4147yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4150yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4153yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4215Assert.Equal(VisualStyleRenderer.IsSupported ? ButtonState.Pushed : ButtonState.Normal, cell.ButtonState); 4520ButtonState expectedButtonState1 = enableHeadersVisualStyles && VisualStyleRenderer.IsSupported ? ButtonState.Pushed : ButtonState.Normal; 4521ButtonState expectedButtonState2 = enableHeadersVisualStyles && VisualStyleRenderer.IsSupported ? ButtonState.Normal : expectedButtonState1;
System\Windows\Forms\ProgressBarRendererTest.cs (2)
14bool expectedValue = VisualStyleRenderer.IsSupported; 79bool isElementDefined = VisualStyleRenderer.IsElementDefined(styleElement);
System\Windows\Forms\TrackBarRendererTests.cs (1)
32isSupported.Should().Be(VisualStyleRenderer.IsSupported);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (36)
28VisualStyleRenderer renderer = new(element.ClassName, element.Part, element.State); 62VisualStyleRenderer renderer = new(element); 86bool result = VisualStyleRenderer.IsSupported; 88Assert.Equal(result, VisualStyleRenderer.IsSupported); 108Assert.Equal(expected, VisualStyleRenderer.IsElementDefined(element)); 114Assert.Throws<ArgumentNullException>("element", () => VisualStyleRenderer.IsElementDefined(null)); 135VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 169VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 179VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 204VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 214VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 222VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 232VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 242VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 266VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 279VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 292VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 302VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 312VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 324VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 351VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 378VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 391VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 417VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 448VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 479VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 489VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 501VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Normal); 515VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 528VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 536VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 548VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 556VisualStyleRenderer renderer = new(VisualStyleElement.Button.PushButton.Hot); 563VisualStyleRenderer renderer = new("BUTTON", 0, 0); 570VisualStyleRenderer renderer = new("TEXTSTYLE", 1, 0); 582VisualStyleRenderer renderer = new("TEXTSTYLE", 1, 0);