Beispiel #1
0
        private void AxisPara_Load(object sender, EventArgs e)
        {
            Frm_MotorParam IOControl = new Frm_MotorParam();

            IOControl.TopLevel        = false;
            IOControl.FormBorderStyle = FormBorderStyle.None; //去掉窗体边框
            IOControl.Size            = panelforAxisPara.Size;
            IOControl.Parent          = panelforAxisPara;     //指定子窗体显示的容器
            IOControl.Dock            = DockStyle.Fill;
            IOControl.Show();
        }
        private void InitializeControl()
        {
            LogicStatus.Instance.Logic.Init();//模块任务添加到线程池
            point = new Point();


            posmachine           = new PosMachine();
            ShowMessge.StartMsg += new ShowMessge.SendStartMsgEventHandler(ShowMessage);
            clean       = new Clean();
            model       = new model();
            data        = new parameter();
            userInfo    = new UserInfo();
            Frm_Machine = new Frm_MotorParam();
            frmLog      = new FormLog();
            frm_jog     = new XYZ_Jog();
            frm_Machine = new Frm_Machine();


            comboBox1.SelectedIndex   = 1;
            tabControl1.SelectedIndex = 0;
            tabControl1.ItemSize      = new Size(0, 1);
            tabControl1.Appearance    = TabAppearance.FlatButtons;
            tabControl1.SizeMode      = TabSizeMode.Fixed;

            data.TopLevel        = false;                //将子窗体设置成非最高层,非顶级控件
            data.FormBorderStyle = FormBorderStyle.None; //去掉窗体边框
            data.Size            = this.panel16.Size;
            data.Parent          = this.panel16;         //指定子窗体显示的容器
            data.Dock            = DockStyle.Fill;
            data.Show();
            data.Activate();

            model.TopLevel        = false;                //将子窗体设置成非最高层,非顶级控件
            model.FormBorderStyle = FormBorderStyle.None; //去掉窗体边框
            model.Size            = this.panel13.Size;
            model.Parent          = this.panel13;         //指定子窗体显示的容器
            model.Dock            = DockStyle.Fill;
            model.Show();
            model.Activate();
        }
Beispiel #3
0
        public void InitializeControl()
        {
            StartUpdate.SendStartMsg("初始化控件");
            frmLog   = new FormLog();
            userInfo = new UserInfo();
            //frm_Stick = null;

            Frm_Machine = new Frm_MotorParam();

            //frm_Stick.TopLevel = false; //将子窗体设置成非最高层,非顶级控件
            //frm_Stick.FormBorderStyle = FormBorderStyle.None;//去掉窗体边框
            //frm_Stick.Size = this.panel1.Size;
            //frm_Stick.Parent = this.panel1;//指定子窗体显示的容器
            //frm_Stick.Dock = DockStyle.Fill;
            //frm_Stick.Show();
            //frm_Stick.Activate();

            skinTabControl1.ItemSize    = new Size(0, 1);
            skinTabControl1.Appearance  = TabAppearance.FlatButtons;
            skinTabControl1.SizeMode    = TabSizeMode.Fixed;
            skinTabControl1.SelectedTab = 主页Tag;
            StartUpdate.SendStartMsg("控件初始化完成");
        }