public TotalViewPck() { tileChooser = new ComboBox(); scroll = new VScrollBar(); status = new Label(); showBytes = new CheckBox(); tileChooser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; tileChooser.Size = new System.Drawing.Size(121, 21); tileChooser.SelectedIndexChanged += new System.EventHandler(this.tileChooser_SelectedIndexChanged); tileChooser.MaxDropDownItems = 20; this.status.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.status.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.status.Location = new System.Drawing.Point(0, 250); this.status.Size = new System.Drawing.Size(293, 23); this.showBytes.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.showBytes.Location = new System.Drawing.Point(120, 0); this.showBytes.Size = new System.Drawing.Size(100, 21); this.showBytes.Text = "Show Bytes"; this.showBytes.CheckedChanged += new System.EventHandler(this.showBytes_CheckedChanged); scroll.Dock = System.Windows.Forms.DockStyle.Right; scroll.Location = new System.Drawing.Point(294, 0); scroll.Size = new System.Drawing.Size(18, 273); scroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.scroll_Scroll); this.Controls.AddRange(new System.Windows.Forms.Control[] { showBytes, status, scroll, tileChooser }); //this.images = images; view = new ViewPck(); view.Location = new Point(0, tileChooser.Height); view.MouseThing += new MouseStuff(viewClicked); scroll.Minimum = -tileChooser.Height; this.Controls.Add(view); OnResize(null); }
public TotalViewPck() { tileChooser = new ComboBox(); scroll = new VScrollBar(); status = new Label(); showBytes = new CheckBox(); tileChooser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; tileChooser.Size = new System.Drawing.Size(121, 21); tileChooser.SelectedIndexChanged += new System.EventHandler(this.tileChooser_SelectedIndexChanged); tileChooser.MaxDropDownItems=20; this.status.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.status.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.status.Location = new System.Drawing.Point(0, 250); this.status.Size = new System.Drawing.Size(293, 23); this.showBytes.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.showBytes.Location = new System.Drawing.Point(120, 0); this.showBytes.Size = new System.Drawing.Size(100, 21); this.showBytes.Text = "Show Bytes"; this.showBytes.CheckedChanged += new System.EventHandler(this.showBytes_CheckedChanged); scroll.Dock = System.Windows.Forms.DockStyle.Right; scroll.Location = new System.Drawing.Point(294, 0); scroll.Size = new System.Drawing.Size(18, 273); scroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.scroll_Scroll); this.Controls.AddRange(new System.Windows.Forms.Control[] { showBytes, status, scroll, tileChooser}); //this.images = images; view = new ViewPck(); view.Location = new Point(0,tileChooser.Height); view.MouseThing+=new MouseStuff(viewClicked); scroll.Minimum = -tileChooser.Height; this.Controls.Add(view); OnResize(null); }
public TotalViewPck() { scroll = new VScrollBar(); statusBar = new StatusBar(); statusOverTile = new StatusBarPanel(); statusOverTile.AutoSize = StatusBarPanelAutoSize.Spring; statusBar.Panels.Add(statusOverTile); statusBar.ShowPanels = true; statusBar.Dock = DockStyle.Bottom; statusBPP = new StatusBarPanel(); statusBPP.AutoSize = StatusBarPanelAutoSize.Contents; statusBPP.Width = 50; statusBPP.Alignment = HorizontalAlignment.Right; statusBar.Panels.Add(statusBPP); scroll.Dock = System.Windows.Forms.DockStyle.Right; scroll.Maximum = 5000; scroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.scroll_Scroll); view = new ViewPck(); view.Location = new Point(0, 0); view.ViewClicked += new PckViewMouseClicked(viewClicked); view.ViewMoved += new PckViewMouseMoved(viewMoved); view.Dock = DockStyle.Fill; view.ViewClicked += new PckViewMouseClicked(viewClik); scroll.Minimum = 0; this.Controls.AddRange(new System.Windows.Forms.Control[] { statusBar, scroll, view }); view.SizeChanged += new EventHandler(viewSizeChange); OnResize(null); }
public TotalViewPck() { scroll = new VScrollBar(); statusBar = new StatusBar(); statusOverTile = new StatusBarPanel(); statusOverTile.AutoSize = StatusBarPanelAutoSize.Spring; statusBar.Panels.Add(statusOverTile); statusBar.ShowPanels = true; statusBar.Dock = DockStyle.Bottom; statusBPP = new StatusBarPanel(); statusBPP.AutoSize = StatusBarPanelAutoSize.Contents; statusBPP.Width = 50; statusBPP.Alignment = HorizontalAlignment.Right; statusBar.Panels.Add(statusBPP); scroll.Dock = System.Windows.Forms.DockStyle.Right; scroll.Maximum = 5000; scroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.scroll_Scroll); view = new ViewPck(); view.Location = new Point(0, 0); view.ViewClicked += new PckViewMouseClicked(viewClicked); view.ViewMoved += new PckViewMouseMoved(viewMoved); view.Dock = DockStyle.Fill; view.ViewClicked += new PckViewMouseClicked(viewClik); scroll.Minimum = 0; this.Controls.AddRange(new System.Windows.Forms.Control[] { statusBar, scroll,view}); view.SizeChanged += new EventHandler(viewSizeChange); OnResize(null); }