Пример #1
0
        private void DoImageToolBarControlPaint(HCToolBarControl control, int left, int top, HCCanvas canvas)
        {
            string resName = "tool" + control.Tag.ToString();
            Icon   icon    = (Icon)Resources.ResourceManager.GetObject(resName);
            Bitmap vBmp    = ((System.Drawing.Icon)icon).ToBitmap();

            canvas.Draw(left + 4, top + 4, vBmp);
        }
Пример #2
0
 public int AddControl(HCToolBarControl aControl)
 {
     FControls.Add(aControl);
     return(FControls.Count - 1);
 }