private void InitializeComponent() { this.chooseToolButton = new PdnToolStripSplitButton(); base.SuspendLayout(); this.chooseToolButton.Name = "chooseToolButton"; this.chooseToolButton.Text = this.chooseToolLabelText; this.chooseToolButton.AutoToolTip = false; this.chooseToolButton.Image = PdnResources.GetImageResource("Icons.BlankIcon.png").Reference; this.chooseToolButton.TextImageRelation = TextImageRelation.TextBeforeImage; this.chooseToolButton.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText; this.chooseToolButton.DropDownOpening += new EventHandler(this.OnChooseToolButtonDropDownOpening); this.chooseToolButton.DropDownClosed += new EventHandler(this.OnChooseToolButtonDropDownClosed); this.chooseToolButton.DropDownItemClicked += new ToolStripItemClickedEventHandler(this.OnChooseToolButtonDropDownItemClicked); this.chooseToolButton.Click += (sender, e) => this.chooseToolButton.ShowDropDown(); this.Items.Add(this.chooseToolButton); base.ResumeLayout(false); }
private void InitializeComponent() { this.contextStatusLabel = new PdnToolStripStatusLabel(); this.progressStatusSeparator = new ToolStripSeparator(); this.progressStatusBar = new ToolStripProgressBar(); ToolStripSeparator separator = new ToolStripSeparator(); this.imageInfoStatusLabel = new ToolStripStatusLabel(); ToolStripSeparator separator2 = new ToolStripSeparator(); this.cursorInfoStatusLabel = new ToolStripStatusLabel(); this.unitsButton = new PdnToolStripSplitButton(); this.zoomToWindowToggleButton = new ToolStripButton(); this.zoomAmountButton = new ToolStripButton(); this.zoomSeparator = new ToolStripSeparator(); this.zoomOutButton = new ToolStripButton(); this.zoomSlider = new ZoomSliderControl(); this.zoomInButton = new ToolStripButton(); base.SuspendLayout(); this.contextStatusLabel.Name = "contextStatusLabel"; this.contextStatusLabel.Spring = true; this.contextStatusLabel.TextAlign = ContentAlignment.MiddleLeft; this.contextStatusLabel.ImageAlign = ContentAlignment.MiddleLeft; this.contextStatusLabel.ImageScaling = ToolStripItemImageScaling.None; this.progressStatusSeparator.DisplayStyle = ToolStripItemDisplayStyle.None; this.progressStatusSeparator.Visible = false; this.progressStatusBar.Name = "progressStatusBar"; this.progressStatusBar.AutoSize = false; this.progressStatusBar.Width = 130; this.progressStatusBar.Visible = false; this.progressStatusBar.ProgressBar.Style = ProgressBarStyle.Continuous; separator.DisplayStyle = ToolStripItemDisplayStyle.None; this.imageInfoStatusLabel.Name = "imageInfoStatusLabel"; this.imageInfoStatusLabel.AutoSize = false; this.imageInfoStatusLabel.Width = UIUtil.ScaleWidth(90); this.imageInfoStatusLabel.TextAlign = ContentAlignment.MiddleLeft; this.imageInfoStatusLabel.ImageAlign = ContentAlignment.MiddleLeft; this.imageInfoStatusLabel.ImageScaling = ToolStripItemImageScaling.None; separator2.DisplayStyle = ToolStripItemDisplayStyle.None; this.cursorInfoStatusLabel.Name = "cursorInfoStatusLabel"; this.cursorInfoStatusLabel.AutoSize = false; this.cursorInfoStatusLabel.Width = UIUtil.ScaleWidth(90); this.cursorInfoStatusLabel.TextAlign = ContentAlignment.MiddleLeft; this.cursorInfoStatusLabel.ImageAlign = ContentAlignment.MiddleLeft; this.cursorInfoStatusLabel.ImageScaling = ToolStripItemImageScaling.None; this.unitsButton.AutoSize = true; this.unitsButton.DisplayStyle = ToolStripItemDisplayStyle.Text; this.unitsButton.TextAlign = ContentAlignment.MiddleCenter; this.unitsButton.ToolTipText = string.Empty; this.unitsButton.AutoToolTip = false; this.unitsButton.DropDownDirection = ToolStripDropDownDirection.AboveRight; this.unitsButton.DropDownItemClicked += new ToolStripItemClickedEventHandler(this.OnUnitsButtonDropDownItemClicked); this.PopulateUnitsButtonDropDown(); this.SetUnitsButtonLabelAndDropDownItemChecks(); this.zoomToWindowToggleButton.Click += new EventHandler(this.OnZoomToggleButtonClicked); this.zoomToWindowToggleButton.ImageScaling = ToolStripItemImageScaling.None; this.zoomToWindowToggleButton.ToolTipText = PdnResources.GetString("Menu.View.ZoomToWindow.Text").Replace("&", ""); this.zoomAmountButton.AutoSize = true; this.zoomAmountButton.DisplayStyle = ToolStripItemDisplayStyle.Text; this.zoomAmountButton.TextAlign = ContentAlignment.MiddleCenter; this.zoomAmountButton.AutoToolTip = false; this.zoomAmountButton.Click += new EventHandler(this.OnZoomAmountButtonClick); this.zoomSeparator.DisplayStyle = ToolStripItemDisplayStyle.None; this.zoomOutButton.ImageScaling = ToolStripItemImageScaling.None; this.zoomSlider.AutoSize = false; this.zoomSlider.Width = UIUtil.ScaleWidth(0x63); this.zoomSlider.BackColor = Color.Transparent; this.zoomSlider.ScaleFactorChanged += new EventHandler(this.OnSliderScaleFactorChanged); this.zoomInButton.ImageScaling = ToolStripItemImageScaling.None; base.Name = "PdnStatusBar"; this.Items.Add(this.contextStatusLabel); this.Items.Add(this.progressStatusSeparator); this.Items.Add(this.progressStatusBar); this.Items.Add(separator); this.Items.Add(this.imageInfoStatusLabel); this.Items.Add(separator2); this.Items.Add(this.cursorInfoStatusLabel); this.Items.Add(this.unitsButton); this.Items.Add(this.zoomAmountButton); ToolStripSeparator separator1 = new ToolStripSeparator { DisplayStyle = ToolStripItemDisplayStyle.None }; this.Items.Add(separator1); this.Items.Add(this.zoomToWindowToggleButton); this.Items.Add(this.zoomSeparator); this.Items.Add(this.zoomOutButton); this.Items.Add(this.zoomSlider); this.Items.Add(this.zoomInButton); base.ResumeLayout(false); }