public void DrawBoxes(Graphics g) { if (_owner.ControlBox) { closeBtn.DrawButton(g); if (_owner.MinimizeBox && minBtn != null) { minBtn.DrawButton(g); } if (_owner.MaximizeBox) { if (maxBtn != null & maxBtn.Visible) { maxBtn.DrawButton(g); } if (resBtn != null && resBtn.Visible) { resBtn.DrawButton(g); } } } }
private void DrawOtherBarButtons(Graphics g) { // new-tab-btn if (ShowNewTabBtn) { _newTabBtn.Bounds = NewTabBtnBounds; _newTabBtn.DrawButton(g); } // list-all-btn if (_hiddenTabsCount > 0 || AlwaysShowListAllBtn) { _listAllBtn.Bounds = ListAllBtnBounds; if (_hiddenTabsCount == 0) { _listAllBtn.Text = string.Empty; } else { _listAllBtn.Text = _hiddenTabsCount.ToString(); } _listAllBtn.DrawButton(g); } }
private void PaintScrollBar(Graphics g) { if (DrawBackground) { RenderBackground(g); } if (middleButtonVisible) { wlMiddleButton.Bounds = MiddleButtonRect; wlMiddleButton.DrawButton(g); } if (ShowSideButtons) { wlSideButton1.DrawButton(g); wlSideButton2.DrawButton(g); } if (DrawBorder) { RenderBorders(g); } }