示例#1
0
        /*
         * 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);
            }
        }
示例#2
0
        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, "");
            }
        }
示例#3
0
        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);
            }
        }