Inheritance: TpBaseButton
		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;
		}
Esempio n. 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);
        }
Esempio n. 3
0
 public void UnTogleAll()
 {
     foreach (Control ctrl in Controls)
     {
         TpToolButton tpb = ctrl as TpToolButton;
         if (tpb != null)
         {
             tpb.Togle = false;
         }
     }
     Invalidate();
 }