Пример #1
0
        public static xButton createImageButton(int id, xIEventListener listener, ImageList imglist, int imgIndex)
        {
            Button bt = new Button();

            bt.ImageList  = imglist;
            bt.ImageIndex = imgIndex;

            xButton xbt = new xButton(bt, id, listener);

            xbt.setSize(imglist.ImageSize.Width + 2, imglist.ImageSize.Height + 2);
            //xbt.makeFlat();

            return(xbt);
        }
Пример #2
0
        public static xButton createStandardButton(int id, xIEventListener listener, string text, int w)
        {
            xButton bt = new xButton(listener);

            bt.setText(text);
            if (w != -1)
            {
                bt.setSize(w, -1);
            }

            bt.setID(id);

            return(bt);
        }