This class supports rendering of TabControl correctly when using bottom alignment with visual styles enabled. When ones are disabled the default method of rendering is used. Adapted from XPTabControl by Vladimir Svyatsky.
Inheritance: System.Windows.Forms.TabControl
Example #1
0
			public NativeUpDown(VSTabControl ctrl) { fparent = ctrl; }
Example #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.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BulkEditBar));
			this.m_operationLabel = new System.Windows.Forms.Label();
			this.m_operationsTabControl = new SIL.FieldWorks.Common.Widgets.VSTabControl();
			this.m_listChoiceTab = new System.Windows.Forms.TabPage();
			this.m_bulkEditIconButton = new System.Windows.Forms.Button();
			this.m_imageList16x16 = new System.Windows.Forms.ImageList(this.components);
			this.m_bulkEditOperationLabel = new System.Windows.Forms.Label();
			this.m_listChoiceChangeToCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.m_listChoiceTargetCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.m_closeButton = new System.Windows.Forms.Button();
			this.m_bulkCopyTab = new System.Windows.Forms.TabPage();
			this.m_bulkCopySourceCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label4 = new System.Windows.Forms.Label();
			this.m_bulkCopyTargetCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label5 = new System.Windows.Forms.Label();
			this.m_clickCopyTab = new System.Windows.Forms.TabPage();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.m_clickCopySepBox = new SIL.FieldWorks.Common.Widgets.FwTextBox();
			this.m_clickCopyOverwriteButton = new System.Windows.Forms.RadioButton();
			this.m_clickCopyAppendButton = new System.Windows.Forms.RadioButton();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.m_clickCopyReorderButton = new System.Windows.Forms.RadioButton();
			this.m_clickCopyWordButton = new System.Windows.Forms.RadioButton();
			this.m_clickCopyTargetCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label6 = new System.Windows.Forms.Label();
			this.m_transduceTab = new System.Windows.Forms.TabPage();
			this.m_transduceSetupButton = new System.Windows.Forms.Button();
			this.m_transduceSourceCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label7 = new System.Windows.Forms.Label();
			this.m_transduceTargetCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label8 = new System.Windows.Forms.Label();
			this.m_transduceProcessorCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label9 = new System.Windows.Forms.Label();
			this.m_findReplaceTab = new System.Windows.Forms.TabPage();
			this.m_findReplaceSetupButton = new System.Windows.Forms.Button();
			this.m_findReplaceTargetCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label12 = new System.Windows.Forms.Label();
			this.m_deleteTab = new System.Windows.Forms.TabPage();
			this.label13 = new System.Windows.Forms.Label();
			this.m_deleteWhatCombo = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.m_imageList16x14 = new System.Windows.Forms.ImageList(this.components);
			this.m_helpButton = new System.Windows.Forms.Button();
			this.m_previewButton = new System.Windows.Forms.Button();
			this.m_ApplyButton = new System.Windows.Forms.Button();
			this.m_operationsTabControl.SuspendLayout();
			this.m_listChoiceTab.SuspendLayout();
			this.m_bulkCopyTab.SuspendLayout();
			this.m_clickCopyTab.SuspendLayout();
			this.groupBox2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.m_clickCopySepBox)).BeginInit();
			this.groupBox1.SuspendLayout();
			this.m_transduceTab.SuspendLayout();
			this.m_findReplaceTab.SuspendLayout();
			this.m_deleteTab.SuspendLayout();
			this.SuspendLayout();
			//
			// m_operationLabel
			//
			resources.ApplyResources(this.m_operationLabel, "m_operationLabel");
			this.m_operationLabel.BackColor = System.Drawing.Color.Transparent;
			this.m_operationLabel.Name = "m_operationLabel";
			//
			// m_operationsTabControl
			//
			resources.ApplyResources(this.m_operationsTabControl, "m_operationsTabControl");
			this.m_operationsTabControl.Controls.Add(this.m_listChoiceTab);
			this.m_operationsTabControl.Controls.Add(this.m_bulkCopyTab);
			this.m_operationsTabControl.Controls.Add(this.m_clickCopyTab);
			this.m_operationsTabControl.Controls.Add(this.m_transduceTab);
			this.m_operationsTabControl.Controls.Add(this.m_findReplaceTab);
			this.m_operationsTabControl.Controls.Add(this.m_deleteTab);
			this.m_operationsTabControl.Name = "m_operationsTabControl";
			this.m_operationsTabControl.SelectedIndex = 0;
			//
			// m_listChoiceTab
			//
			this.m_listChoiceTab.Controls.Add(this.m_bulkEditIconButton);
			this.m_listChoiceTab.Controls.Add(this.m_operationLabel);
			this.m_listChoiceTab.Controls.Add(this.m_bulkEditOperationLabel);
			this.m_listChoiceTab.Controls.Add(this.m_listChoiceChangeToCombo);
			this.m_listChoiceTab.Controls.Add(this.label3);
			this.m_listChoiceTab.Controls.Add(this.m_listChoiceTargetCombo);
			this.m_listChoiceTab.Controls.Add(this.label2);
			this.m_listChoiceTab.Controls.Add(this.m_closeButton);
			resources.ApplyResources(this.m_listChoiceTab, "m_listChoiceTab");
			this.m_listChoiceTab.Name = "m_listChoiceTab";
			this.m_listChoiceTab.UseVisualStyleBackColor = true;
			this.m_listChoiceTab.Enter += new System.EventHandler(this.m_listChoiceTab_Enter);
			//
			// m_bulkEditIconButton
			//
			this.m_bulkEditIconButton.BackColor = System.Drawing.Color.Transparent;
			resources.ApplyResources(this.m_bulkEditIconButton, "m_bulkEditIconButton");
			this.m_bulkEditIconButton.ImageList = this.m_imageList16x16;
			this.m_bulkEditIconButton.Name = "m_bulkEditIconButton";
			this.m_bulkEditIconButton.UseVisualStyleBackColor = false;
			//
			// m_imageList16x16
			//
			this.m_imageList16x16.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imageList16x16.ImageStream")));
			this.m_imageList16x16.TransparentColor = System.Drawing.Color.Fuchsia;
			this.m_imageList16x16.Images.SetKeyName(0, "BulkEditIcon.bmp");
			//
			// m_bulkEditOperationLabel
			//
			resources.ApplyResources(this.m_bulkEditOperationLabel, "m_bulkEditOperationLabel");
			this.m_bulkEditOperationLabel.BackColor = System.Drawing.Color.Transparent;
			this.m_bulkEditOperationLabel.ForeColor = System.Drawing.Color.Blue;
			this.m_bulkEditOperationLabel.Name = "m_bulkEditOperationLabel";
			//
			// m_listChoiceChangeToCombo
			//
			this.m_listChoiceChangeToCombo.AllowSpaceInEditBox = false;
			this.m_listChoiceChangeToCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_listChoiceChangeToCombo, "m_listChoiceChangeToCombo");
			this.m_listChoiceChangeToCombo.Name = "m_listChoiceChangeToCombo";
			//
			// label3
			//
			resources.ApplyResources(this.label3, "label3");
			this.label3.Name = "label3";
			//
			// m_listChoiceTargetCombo
			//
			this.m_listChoiceTargetCombo.AllowSpaceInEditBox = false;
			this.m_listChoiceTargetCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_listChoiceTargetCombo, "m_listChoiceTargetCombo");
			this.m_listChoiceTargetCombo.Name = "m_listChoiceTargetCombo";
			//
			// label2
			//
			resources.ApplyResources(this.label2, "label2");
			this.label2.Name = "label2";
			//
			// m_closeButton
			//
			resources.ApplyResources(this.m_closeButton, "m_closeButton");
			this.m_closeButton.ForeColor = System.Drawing.SystemColors.Control;
			this.m_closeButton.Name = "m_closeButton";
			//
			// m_bulkCopyTab
			//
			this.m_bulkCopyTab.Controls.Add(this.m_bulkCopySourceCombo);
			this.m_bulkCopyTab.Controls.Add(this.label4);
			this.m_bulkCopyTab.Controls.Add(this.m_bulkCopyTargetCombo);
			this.m_bulkCopyTab.Controls.Add(this.label5);
			resources.ApplyResources(this.m_bulkCopyTab, "m_bulkCopyTab");
			this.m_bulkCopyTab.ForeColor = System.Drawing.SystemColors.ControlText;
			this.m_bulkCopyTab.Name = "m_bulkCopyTab";
			this.m_bulkCopyTab.UseVisualStyleBackColor = true;
			this.m_bulkCopyTab.Enter += new System.EventHandler(this.m_bulkCopyTab_Enter);
			//
			// m_bulkCopySourceCombo
			//
			this.m_bulkCopySourceCombo.AllowSpaceInEditBox = false;
			this.m_bulkCopySourceCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_bulkCopySourceCombo, "m_bulkCopySourceCombo");
			this.m_bulkCopySourceCombo.Name = "m_bulkCopySourceCombo";
			//
			// label4
			//
			resources.ApplyResources(this.label4, "label4");
			this.label4.Name = "label4";
			//
			// m_bulkCopyTargetCombo
			//
			this.m_bulkCopyTargetCombo.AllowSpaceInEditBox = false;
			this.m_bulkCopyTargetCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_bulkCopyTargetCombo, "m_bulkCopyTargetCombo");
			this.m_bulkCopyTargetCombo.Name = "m_bulkCopyTargetCombo";
			//
			// label5
			//
			resources.ApplyResources(this.label5, "label5");
			this.label5.Name = "label5";
			//
			// m_clickCopyTab
			//
			this.m_clickCopyTab.Controls.Add(this.groupBox2);
			this.m_clickCopyTab.Controls.Add(this.groupBox1);
			this.m_clickCopyTab.Controls.Add(this.m_clickCopyTargetCombo);
			this.m_clickCopyTab.Controls.Add(this.label6);
			resources.ApplyResources(this.m_clickCopyTab, "m_clickCopyTab");
			this.m_clickCopyTab.Name = "m_clickCopyTab";
			this.m_clickCopyTab.UseVisualStyleBackColor = true;
			this.m_clickCopyTab.Enter += new System.EventHandler(this.m_clickCopyTab_Enter);
			//
			// groupBox2
			//
			this.groupBox2.Controls.Add(this.m_clickCopySepBox);
			this.groupBox2.Controls.Add(this.m_clickCopyOverwriteButton);
			this.groupBox2.Controls.Add(this.m_clickCopyAppendButton);
			resources.ApplyResources(this.groupBox2, "groupBox2");
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.TabStop = false;
			//
			// m_clickCopySepBox
			//
			this.m_clickCopySepBox.AdjustStringHeight = true;
			this.m_clickCopySepBox.BackColor = System.Drawing.SystemColors.Window;
			this.m_clickCopySepBox.controlID = null;
			resources.ApplyResources(this.m_clickCopySepBox, "m_clickCopySepBox");
			this.m_clickCopySepBox.HasBorder = true;
			this.m_clickCopySepBox.Name = "m_clickCopySepBox";
			this.m_clickCopySepBox.SelectionLength = 0;
			this.m_clickCopySepBox.SelectionStart = 0;
			//
			// m_clickCopyOverwriteButton
			//
			resources.ApplyResources(this.m_clickCopyOverwriteButton, "m_clickCopyOverwriteButton");
			this.m_clickCopyOverwriteButton.Name = "m_clickCopyOverwriteButton";
			//
			// m_clickCopyAppendButton
			//
			resources.ApplyResources(this.m_clickCopyAppendButton, "m_clickCopyAppendButton");
			this.m_clickCopyAppendButton.Checked = true;
			this.m_clickCopyAppendButton.Name = "m_clickCopyAppendButton";
			this.m_clickCopyAppendButton.TabStop = true;
			//
			// groupBox1
			//
			this.groupBox1.Controls.Add(this.m_clickCopyReorderButton);
			this.groupBox1.Controls.Add(this.m_clickCopyWordButton);
			resources.ApplyResources(this.groupBox1, "groupBox1");
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.TabStop = false;
			//
			// m_clickCopyReorderButton
			//
			resources.ApplyResources(this.m_clickCopyReorderButton, "m_clickCopyReorderButton");
			this.m_clickCopyReorderButton.Name = "m_clickCopyReorderButton";
			//
			// m_clickCopyWordButton
			//
			resources.ApplyResources(this.m_clickCopyWordButton, "m_clickCopyWordButton");
			this.m_clickCopyWordButton.Checked = true;
			this.m_clickCopyWordButton.Name = "m_clickCopyWordButton";
			this.m_clickCopyWordButton.TabStop = true;
			//
			// m_clickCopyTargetCombo
			//
			this.m_clickCopyTargetCombo.AllowSpaceInEditBox = false;
			this.m_clickCopyTargetCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_clickCopyTargetCombo, "m_clickCopyTargetCombo");
			this.m_clickCopyTargetCombo.Name = "m_clickCopyTargetCombo";
			this.m_clickCopyTargetCombo.SelectedIndexChanged += new System.EventHandler(this.m_clickCopyTargetCombo_SelectedIndexChanged);
			//
			// label6
			//
			resources.ApplyResources(this.label6, "label6");
			this.label6.Name = "label6";
			//
			// m_transduceTab
			//
			this.m_transduceTab.Controls.Add(this.m_transduceSetupButton);
			this.m_transduceTab.Controls.Add(this.m_transduceSourceCombo);
			this.m_transduceTab.Controls.Add(this.label7);
			this.m_transduceTab.Controls.Add(this.m_transduceTargetCombo);
			this.m_transduceTab.Controls.Add(this.label8);
			this.m_transduceTab.Controls.Add(this.m_transduceProcessorCombo);
			this.m_transduceTab.Controls.Add(this.label9);
			resources.ApplyResources(this.m_transduceTab, "m_transduceTab");
			this.m_transduceTab.Name = "m_transduceTab";
			this.m_transduceTab.UseVisualStyleBackColor = true;
			this.m_transduceTab.Enter += new System.EventHandler(this.m_transduceTab_Enter);
			//
			// m_transduceSetupButton
			//
			resources.ApplyResources(this.m_transduceSetupButton, "m_transduceSetupButton");
			this.m_transduceSetupButton.Name = "m_transduceSetupButton";
			this.m_transduceSetupButton.Click += new System.EventHandler(this.m_transduceSetupButton_Click);
			//
			// m_transduceSourceCombo
			//
			this.m_transduceSourceCombo.AllowSpaceInEditBox = false;
			this.m_transduceSourceCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_transduceSourceCombo, "m_transduceSourceCombo");
			this.m_transduceSourceCombo.Name = "m_transduceSourceCombo";
			//
			// label7
			//
			resources.ApplyResources(this.label7, "label7");
			this.label7.Name = "label7";
			//
			// m_transduceTargetCombo
			//
			this.m_transduceTargetCombo.AllowSpaceInEditBox = false;
			this.m_transduceTargetCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_transduceTargetCombo, "m_transduceTargetCombo");
			this.m_transduceTargetCombo.Name = "m_transduceTargetCombo";
			//
			// label8
			//
			resources.ApplyResources(this.label8, "label8");
			this.label8.Name = "label8";
			//
			// m_transduceProcessorCombo
			//
			this.m_transduceProcessorCombo.AllowSpaceInEditBox = false;
			this.m_transduceProcessorCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.m_transduceProcessorCombo.Items.AddRange(new object[] {
			resources.GetString("m_transduceProcessorCombo.Items"),
			resources.GetString("m_transduceProcessorCombo.Items1")});
			resources.ApplyResources(this.m_transduceProcessorCombo, "m_transduceProcessorCombo");
			this.m_transduceProcessorCombo.Name = "m_transduceProcessorCombo";
			//
			// label9
			//
			resources.ApplyResources(this.label9, "label9");
			this.label9.Name = "label9";
			//
			// m_findReplaceTab
			//
			this.m_findReplaceTab.Controls.Add(this.m_findReplaceSetupButton);
			this.m_findReplaceTab.Controls.Add(this.m_findReplaceTargetCombo);
			this.m_findReplaceTab.Controls.Add(this.label12);
			resources.ApplyResources(this.m_findReplaceTab, "m_findReplaceTab");
			this.m_findReplaceTab.Name = "m_findReplaceTab";
			this.m_findReplaceTab.UseVisualStyleBackColor = true;
			this.m_findReplaceTab.Enter += new System.EventHandler(this.m_findReplaceTab_Enter);
			//
			// m_findReplaceSetupButton
			//
			resources.ApplyResources(this.m_findReplaceSetupButton, "m_findReplaceSetupButton");
			this.m_findReplaceSetupButton.Name = "m_findReplaceSetupButton";
			this.m_findReplaceSetupButton.Click += new System.EventHandler(this.m_findReplaceSetupButton_Click);
			//
			// m_findReplaceTargetCombo
			//
			this.m_findReplaceTargetCombo.AllowSpaceInEditBox = false;
			this.m_findReplaceTargetCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_findReplaceTargetCombo, "m_findReplaceTargetCombo");
			this.m_findReplaceTargetCombo.Name = "m_findReplaceTargetCombo";
			this.m_findReplaceTargetCombo.SelectedIndexChanged += new System.EventHandler(this.m_findReplaceTargetCombo_SelectedIndexChanged);
			//
			// label12
			//
			resources.ApplyResources(this.label12, "label12");
			this.label12.Name = "label12";
			//
			// m_deleteTab
			//
			this.m_deleteTab.Controls.Add(this.label13);
			this.m_deleteTab.Controls.Add(this.m_deleteWhatCombo);
			resources.ApplyResources(this.m_deleteTab, "m_deleteTab");
			this.m_deleteTab.Name = "m_deleteTab";
			this.m_deleteTab.UseVisualStyleBackColor = true;
			this.m_deleteTab.Enter += new System.EventHandler(this.m_deleteTab_Enter);
			//
			// label13
			//
			resources.ApplyResources(this.label13, "label13");
			this.label13.Name = "label13";
			//
			// m_deleteWhatCombo
			//
			this.m_deleteWhatCombo.AllowSpaceInEditBox = false;
			this.m_deleteWhatCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.m_deleteWhatCombo, "m_deleteWhatCombo");
			this.m_deleteWhatCombo.Name = "m_deleteWhatCombo";
			this.m_deleteWhatCombo.SelectedIndexChanged += new System.EventHandler(this.m_deleteWhatCombo_SelectedIndexChanged);
			//
			// m_imageList16x14
			//
			this.m_imageList16x14.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imageList16x14.ImageStream")));
			this.m_imageList16x14.TransparentColor = System.Drawing.Color.Magenta;
			this.m_imageList16x14.Images.SetKeyName(0, "");
			//
			// m_helpButton
			//
			this.m_helpButton.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(this.m_helpButton, "m_helpButton");
			this.m_helpButton.Name = "m_helpButton";
			this.m_helpButton.Click += new System.EventHandler(this.m_helpButton_Click);
			//
			// m_previewButton
			//
			this.m_previewButton.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(this.m_previewButton, "m_previewButton");
			this.m_previewButton.Name = "m_previewButton";
			//
			// m_ApplyButton
			//
			this.m_ApplyButton.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(this.m_ApplyButton, "m_ApplyButton");
			this.m_ApplyButton.Name = "m_ApplyButton";
			//
			// BulkEditBar
			//
			this.Controls.Add(this.m_ApplyButton);
			this.Controls.Add(this.m_previewButton);
			this.Controls.Add(this.m_helpButton);
			this.Controls.Add(this.m_operationsTabControl);
			this.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Name = "BulkEditBar";
			resources.ApplyResources(this, "$this");
			this.m_operationsTabControl.ResumeLayout(false);
			this.m_listChoiceTab.ResumeLayout(false);
			this.m_listChoiceTab.PerformLayout();
			this.m_bulkCopyTab.ResumeLayout(false);
			this.m_bulkCopyTab.PerformLayout();
			this.m_clickCopyTab.ResumeLayout(false);
			this.m_clickCopyTab.PerformLayout();
			this.groupBox2.ResumeLayout(false);
			this.groupBox2.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.m_clickCopySepBox)).EndInit();
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			this.m_transduceTab.ResumeLayout(false);
			this.m_transduceTab.PerformLayout();
			this.m_findReplaceTab.ResumeLayout(false);
			this.m_findReplaceTab.PerformLayout();
			this.m_deleteTab.ResumeLayout(false);
			this.m_deleteTab.PerformLayout();
			this.ResumeLayout(false);

		}
 public NativeUpDown(VSTabControl ctrl)
 {
     fparent = ctrl;
 }