Beispiel #1
0
        private void Form1_Load(object sender, System.EventArgs e)
        {
            fwTextBox1          = new SIL.FieldWorks.Common.Widgets.FwTextBox();
            fwTextBox1.Name     = "FwTextBox1";
            fwTextBox1.Location = new System.Drawing.Point(168, 48);
            fwTextBox1.TabStop  = true;
            this.Controls.Add(fwTextBox1);
            //
            // fwListBox2
            //
            fwListBox2 = new SIL.FieldWorks.Common.Widgets.FwListBox();
            //this.fwListBox2.ItemHeight = 16;
            this.fwListBox2.Items.AddRange(new object[] {
                "This",
                "is",
                "a",
                "list",
                "with",
                "several",
                "items"
            });
            fwListBox2.Location = new System.Drawing.Point(168, 188);
            fwListBox2.Name     = "fwListBox2";
            fwListBox2.Size     = new System.Drawing.Size(120, 84);
            fwListBox2.TabIndex = 5;
            fwListBox2.TabStop  = true;
            this.Controls.Add(fwListBox2);
            //
            // comboBox1
            //
            this.fwComboBox1 = new SIL.FieldWorks.Common.Widgets.FwComboBox();
            this.fwComboBox1.Items.AddRange(new object[] {
                "Here",
                "are",
                "some",
                "combo",
                "items",
                "we",
                "can",
                "use",
                "to",
                "test"
            });
            fwComboBox1.Location = new System.Drawing.Point(152, 300);
            fwComboBox1.Name     = "fwComboBox1";
            fwComboBox1.Size     = new System.Drawing.Size(121, 21);
            fwComboBox1.TabIndex = 8;
            fwComboBox1.Text     = "default";
            fwComboBox1.TabStop  = true;
            Controls.Add(fwComboBox1);

            // Image with associated list.
            this.m_PullDownArrow = ResourceHelper.InterlinPopupArrow;

            m_comboListBox = new SIL.FieldWorks.Common.Widgets.ComboListBox();
            m_comboListBox.Items.AddRange(new object[] {
                "Here",
                "are",
                "some",
                "combo",
                "items",
                "for",
                "the",
                "yellow",
                "button"
            });
            m_comboListBox.Size = new System.Drawing.Size(121, 150);
        }
Beispiel #2
0
		private void Form1_Load(object sender, System.EventArgs e)
		{
			fwTextBox1 = new SIL.FieldWorks.Common.Widgets.FwTextBox();
			fwTextBox1.Name = "FwTextBox1";
			fwTextBox1.Location = new System.Drawing.Point(168, 48);
			fwTextBox1.TabStop = true;
			this.Controls.Add(fwTextBox1);
			//
			// fwListBox2
			//
			fwListBox2 = new SIL.FieldWorks.Common.Widgets.FwListBox();
			//this.fwListBox2.ItemHeight = 16;
			this.fwListBox2.Items.AddRange(new object[] {
														  "This",
														  "is",
														  "a",
														  "list",
														  "with",
														  "several",
														  "items"});
			fwListBox2.Location = new System.Drawing.Point(168, 188);
			fwListBox2.Name = "fwListBox2";
			fwListBox2.Size = new System.Drawing.Size(120, 84);
			fwListBox2.TabIndex = 5;
			fwListBox2.TabStop = true;
			this.Controls.Add(fwListBox2);
			//
			// comboBox1
			//
			this.fwComboBox1 = new SIL.FieldWorks.Common.Widgets.FwComboBox();
			this.fwComboBox1.Items.AddRange(new object[] {
														   "Here",
														   "are",
														   "some",
														   "combo",
														   "items",
														   "we",
														   "can",
														   "use",
														   "to",
														   "test"});
			fwComboBox1.Location = new System.Drawing.Point(152, 300);
			fwComboBox1.Name = "fwComboBox1";
			fwComboBox1.Size = new System.Drawing.Size(121, 21);
			fwComboBox1.TabIndex = 8;
			fwComboBox1.Text = "default";
			fwComboBox1.TabStop = true;
			Controls.Add(fwComboBox1);

			// Image with associated list.
			this.m_PullDownArrow = ResourceHelper.InterlinPopupArrow;

			m_comboListBox = new SIL.FieldWorks.Common.Widgets.ComboListBox();
			m_comboListBox.Items.AddRange(new object[] {
														   "Here",
														   "are",
														   "some",
														   "combo",
														   "items",
														   "for",
														   "the",
														   "yellow",
														   "button"});
			m_comboListBox.Size = new System.Drawing.Size(121, 150);
		}