Beispiel #1
0
        public TestForm()
        {
            tf = this;
            //m_panel是乐谱页面
            m_panel = new NotationPanel();
            //m_canvas.Dock = DockStyle.Fill;
            m_panel.Location = new System.Drawing.Point(188,8);//设置乐谱在整个页面中的位置
            m_panel.Anchor = AnchorStyles.Top;


            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;
            //以上为InitializeComponent();
            this.ribbon1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
            DoRecover();

            //panel1为界面底层灰色部分
            //以上为DoRecover();
            panel1.Controls.Add(m_panel);
            panel1.BackColor = Color.Gray;
            //statusStrip1.BackColor = Color.Red;

            //界面底部页码栏
            toolStripStatusLabel1.Text = "  页码:" + page_now + " 页 " + page_now + "/" + page_sum + " ";//wyy
            toolStripStatusLabel1.BorderSides = ToolStripStatusLabelBorderSides.Right;

            InitLists();
            Initsymbol_list();
            //StartPosition = FormStartPosition.WindowsDefaultBounds;
            WindowState = FormWindowState.Maximized;
            

        }
Beispiel #2
0
        public TestForm()
        {
            tf = this;
            //m_panel是乐谱页面
            m_panel = new NotationPanel();
            //m_canvas.Dock = DockStyle.Fill;
            m_panel.Location = new System.Drawing.Point(188, 8);//设置乐谱在整个页面中的位置
            m_panel.Anchor   = AnchorStyles.Top;


            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;
            //以上为InitializeComponent();
            this.ribbon1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
            DoRecover();

            //panel1为界面底层灰色部分
            //以上为DoRecover();
            panel1.Controls.Add(m_panel);
            panel1.BackColor = Color.Gray;
            //statusStrip1.BackColor = Color.Red;

            //界面底部页码栏
            toolStripStatusLabel1.Text        = "  页码:" + page_now + " 页 " + page_now + "/" + page_sum + " ";//wyy
            toolStripStatusLabel1.BorderSides = ToolStripStatusLabelBorderSides.Right;

            InitLists();
            Initsymbol_list();
            //StartPosition = FormStartPosition.WindowsDefaultBounds;
            WindowState = FormWindowState.Maximized;
        }