/* * public void AddComboBox(string dialogID, int x, int y, int w, int h, string id) * { * ClassDialog cd = dialogs.Find( * delegate(ClassDialog c) * { * return c.Handle.ToString() == dialogID; * } * ); * * if (cd != null) * cd.AddControl(5, "", x, y, w, h, id, ""); * } */ public void AddComboBox(string dialogID, int x, int y, int w, int h, string id, int style, string controlName) { ClassDialog cd = dialogs.Find( delegate(ClassDialog c) { return(c.Handle.ToString() == dialogID); } ); if (cd != null) { cd.AddControl(5, "", x, y, w, h, id, controlName); } }
public void AddLabel(string dialogID, string caption, int x, int y, int w, int h, string id) { ClassDialog cd = dialogs.Find( delegate(ClassDialog c) { return(c.Handle.ToString() == dialogID); } ); if (cd != null) { cd.AddControl(3, caption, x, y, w, h, id, ""); } }
public void AddCheckBox(string dialogID, string caption, int x, int y, int w, int h, int id, int style, string controlName) { // id == 0 -- no need for it ClassDialog cd = dialogs.Find( delegate(ClassDialog c) { return(c.Handle.ToString() == dialogID); } ); if (cd != null) { cd.AddControl(6, caption, x, y, w, h, "", controlName); } }