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); }
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); }