Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
		/// <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);
		}
Ejemplo n.º 4
0
		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);
			}
		}