private void DrawButtonStyle(Graphics gr, Rectangle bounds, NuGenMiniBarButtonState state) { if (state != NuGenMiniBarButtonState.Normal) { brs.Color = Color.FromArgb(80 * (int)state, brs.Color); gr.FillRectangle(brs, bounds); gr.DrawRectangle(pen, bounds); } }
/// <summary> /// </summary> public void MeasureButtons() { _btnStates = new NuGenMiniBarButtonState[_coll.Count]; w = 0; for (int i = 0; i < _coll.Count; i++) { _coll[i].Location = new Point(w, 0); w += _coll[i].ClientRectangle.Width; _btnStates[i] = _coll[i].NState; } this.OnSizeChanged(EventArgs.Empty); }