コード例 #1
0
        /// <summary>
        /// Creates and initializes UI.
        /// </summary>
        private void InitUI()
        {
            this.ClientSize = new Size(200, 200);

            m_pTab             = new WTabBar();
            m_pTab.Size        = new Size(200, 25);
            m_pTab.Location    = new Point(0, 0);
            m_pTab.Anchor      = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            m_pTab.TabChanged += new TabChanged_EventHandler(m_pTab_TabChanged);

            m_pPanel             = new WPanel();
            m_pPanel.Size        = new Size(200, 174);
            m_pPanel.Location    = new Point(0, 26);
            m_pPanel.Anchor      = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            m_pPanel.BorderStyle = BorderStyle.FixedSingle;

            this.Controls.Add(m_pTab);
            this.Controls.Add(m_pPanel);
        }
コード例 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.m_pFormPanel = new WPanel();
     this.splitter1    = new System.Windows.Forms.Splitter();
     this.ControlPane  = new WPanel();
     this.TopPane      = new WPanel();
     this.ToolBarPanel = new WPanel();
     this.button1      = new System.Windows.Forms.Button();
     this.TopPane.SuspendLayout();
     this.SuspendLayout();
     //
     // m_pFormPanel
     //
     this.m_pFormPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.m_pFormPanel.Location = new System.Drawing.Point(103, 25);
     this.m_pFormPanel.Name     = "m_pFormPanel";
     this.m_pFormPanel.Size     = new System.Drawing.Size(193, 191);
     this.m_pFormPanel.TabIndex = 9;
     //
     // splitter1
     //
     this.splitter1.Location       = new System.Drawing.Point(100, 25);
     this.splitter1.Name           = "splitter1";
     this.splitter1.Size           = new System.Drawing.Size(3, 191);
     this.splitter1.TabIndex       = 8;
     this.splitter1.TabStop        = false;
     this.splitter1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.splitter1_SplitterMoved);
     //
     // ControlPane
     //
     this.ControlPane.Dock     = System.Windows.Forms.DockStyle.Left;
     this.ControlPane.Location = new System.Drawing.Point(0, 25);
     this.ControlPane.Name     = "ControlPane";
     this.ControlPane.Size     = new System.Drawing.Size(100, 191);
     this.ControlPane.TabIndex = 6;
     //
     // TopPane
     //
     this.TopPane.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.ToolBarPanel,
         this.button1
     });
     this.TopPane.Dock       = System.Windows.Forms.DockStyle.Top;
     this.TopPane.Name       = "TopPane";
     this.TopPane.Size       = new System.Drawing.Size(296, 25);
     this.TopPane.TabIndex   = 7;
     this.TopPane.DrawBorder = false;
     //
     // ToolBarPanel
     //
     this.ToolBarPanel.Location   = new System.Drawing.Point(112, 0);
     this.ToolBarPanel.Name       = "ToolBarPanel";
     this.ToolBarPanel.Size       = new System.Drawing.Size(184, 24);
     this.ToolBarPanel.TabIndex   = 1;
     this.ToolBarPanel.DrawBorder = false;
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button1.Location  = new System.Drawing.Point(72, 2);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(32, 16);
     this.button1.TabIndex  = 0;
     this.button1.Text      = "<<";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // WFrame
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.m_pFormPanel,
         this.splitter1,
         this.ControlPane,
         this.TopPane
     });
     this.Name = "WFrame";
     this.Size = new System.Drawing.Size(296, 216);
     this.TopPane.ResumeLayout(false);
     this.ResumeLayout(false);
 }