コード例 #1
0
        private void CreateColorSchemeCombo()
        {
            // Label
            this.m_ColorsLabel = new System.Windows.Forms.Label();

            this.m_ColorsLabel.Font      = new System.Drawing.Font(FontName, 8);
            this.m_ColorsLabel.Location  = new System.Drawing.Point(218, LabelTop);
            this.m_ColorsLabel.Size      = new System.Drawing.Size(200, 16);
            this.m_ColorsLabel.Text      = m_trans.Translate("&Colour Scheme");
            this.m_ColorsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;

            this.Controls.Add(m_ColorsLabel);

            // Combo
            this.m_ColorsCombo = new ColorSchemeComboBox();

            this.m_ColorsCombo.Font          = new System.Drawing.Font(FontName, 8);
            this.m_ColorsCombo.Location      = new System.Drawing.Point(220, ComboTop);
            this.m_ColorsCombo.Size          = new System.Drawing.Size(200, 16);
            this.m_ColorsCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;

            this.Controls.Add(m_ColorsCombo);

            // Add selection change handler
            this.m_ColorsCombo.SelectedIndexChanged += new EventHandler(OnColorSchemeSelChanged);
        }
コード例 #2
0
        private void CreateColorSchemeCombo()
        {
            // Label
            m_ColorsLabel = InitialiseLabel(new Label(), "&Colour Scheme", m_AttributeLabel);

            // Combo
            m_ColorsCombo = (ColorSchemeComboBox)InitialiseCombo(new ColorSchemeComboBox(), m_AttributeCombo);

            // Add selection change handler
            m_ColorsCombo.SelectedIndexChanged += new EventHandler(OnColorSchemeSelChanged);
        }