Наследование: TpBaseButton
Пример #1
0
		public TpToolButton AddToolButton(Bitmap pict, string toolTipText)
		{
			TpToolButton tb = new TpToolButton(pict);
			tb.Location = new Point(buttonOffset, (Height - tb.Height)/2);
			buttonOffset += tb.Width + 5;
			Controls.Add(tb);
			ToolTip tip = new ToolTip();
			tip.SetToolTip(tb, toolTipText);
			return tb;
		}
Пример #2
0
        public TpToolButton AddToolButton(Bitmap pict, string toolTipText)
        {
            TpToolButton tb = new TpToolButton(pict);

            tb.Location   = new Point(buttonOffset, (Height - tb.Height) / 2);
            buttonOffset += tb.Width + 5;
            Controls.Add(tb);
            ToolTip tip = new ToolTip();

            tip.SetToolTip(tb, toolTipText);
            return(tb);
        }
Пример #3
0
 public void UnTogleAll()
 {
     foreach (Control ctrl in Controls)
     {
         TpToolButton tpb = ctrl as TpToolButton;
         if (tpb != null)
         {
             tpb.Togle = false;
         }
     }
     Invalidate();
 }