Fixed example project.

This commit is contained in:
Robin 2015-09-18 18:33:19 +01:00
parent b5a5815b20
commit b6ddbf3f19
2 changed files with 16 additions and 16 deletions

View File

@ -55,7 +55,7 @@
this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlMain.Location = new System.Drawing.Point(0, 0);
this.pnlMain.Name = "pnlMain";
this.pnlMain.Padding = new System.Windows.Forms.Padding(10, 15, 10, 5);
this.pnlMain.Padding = new System.Windows.Forms.Padding(5, 10, 5, 0);
this.pnlMain.Size = new System.Drawing.Size(708, 410);
this.pnlMain.TabIndex = 2;
//
@ -69,22 +69,22 @@
this.tblMain.Controls.Add(this.pnlListView, 0, 0);
this.tblMain.Controls.Add(this.pnlMessageBox, 0, 0);
this.tblMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.tblMain.Location = new System.Drawing.Point(10, 15);
this.tblMain.Location = new System.Drawing.Point(5, 10);
this.tblMain.Name = "tblMain";
this.tblMain.RowCount = 1;
this.tblMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tblMain.Size = new System.Drawing.Size(688, 390);
this.tblMain.Size = new System.Drawing.Size(698, 400);
this.tblMain.TabIndex = 0;
//
// pnlTreeView
//
this.pnlTreeView.Controls.Add(this.treeTest);
this.pnlTreeView.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlTreeView.Location = new System.Drawing.Point(463, 0);
this.pnlTreeView.Location = new System.Drawing.Point(469, 0);
this.pnlTreeView.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.pnlTreeView.Name = "pnlTreeView";
this.pnlTreeView.SectionHeader = "Tree view test";
this.pnlTreeView.Size = new System.Drawing.Size(220, 390);
this.pnlTreeView.Size = new System.Drawing.Size(224, 400);
this.pnlTreeView.TabIndex = 14;
//
// treeTest
@ -95,7 +95,7 @@
this.treeTest.MultiSelect = true;
this.treeTest.Name = "treeTest";
this.treeTest.ShowIcons = true;
this.treeTest.Size = new System.Drawing.Size(218, 364);
this.treeTest.Size = new System.Drawing.Size(222, 374);
this.treeTest.TabIndex = 0;
this.treeTest.Text = "darkTreeView1";
//
@ -103,11 +103,11 @@
//
this.pnlListView.Controls.Add(this.lstTest);
this.pnlListView.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlListView.Location = new System.Drawing.Point(234, 0);
this.pnlListView.Location = new System.Drawing.Point(237, 0);
this.pnlListView.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.pnlListView.Name = "pnlListView";
this.pnlListView.SectionHeader = "List view test";
this.pnlListView.Size = new System.Drawing.Size(219, 390);
this.pnlListView.Size = new System.Drawing.Size(222, 400);
this.pnlListView.TabIndex = 13;
//
// lstTest
@ -116,7 +116,7 @@
this.lstTest.Location = new System.Drawing.Point(1, 25);
this.lstTest.MultiSelect = true;
this.lstTest.Name = "lstTest";
this.lstTest.Size = new System.Drawing.Size(217, 364);
this.lstTest.Size = new System.Drawing.Size(220, 374);
this.lstTest.TabIndex = 7;
this.lstTest.Text = "darkListView1";
//
@ -128,7 +128,7 @@
this.pnlMessageBox.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.pnlMessageBox.Name = "pnlMessageBox";
this.pnlMessageBox.SectionHeader = "Section test";
this.pnlMessageBox.Size = new System.Drawing.Size(219, 390);
this.pnlMessageBox.Size = new System.Drawing.Size(222, 400);
this.pnlMessageBox.TabIndex = 12;
//
// panel1
@ -139,7 +139,7 @@
this.panel1.Location = new System.Drawing.Point(1, 25);
this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(10);
this.panel1.Size = new System.Drawing.Size(217, 364);
this.panel1.Size = new System.Drawing.Size(220, 374);
this.panel1.TabIndex = 0;
//
// btnMessageBox
@ -148,7 +148,7 @@
this.btnMessageBox.Location = new System.Drawing.Point(10, 50);
this.btnMessageBox.Name = "btnMessageBox";
this.btnMessageBox.Padding = new System.Windows.Forms.Padding(5);
this.btnMessageBox.Size = new System.Drawing.Size(197, 30);
this.btnMessageBox.Size = new System.Drawing.Size(200, 30);
this.btnMessageBox.TabIndex = 6;
this.btnMessageBox.Text = "Message Box";
//
@ -158,7 +158,7 @@
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(10, 10);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(197, 40);
this.panel2.Size = new System.Drawing.Size(200, 40);
this.panel2.TabIndex = 5;
//
// btnDialog
@ -167,7 +167,7 @@
this.btnDialog.Location = new System.Drawing.Point(0, 0);
this.btnDialog.Name = "btnDialog";
this.btnDialog.Padding = new System.Windows.Forms.Padding(5);
this.btnDialog.Size = new System.Drawing.Size(197, 30);
this.btnDialog.Size = new System.Drawing.Size(200, 30);
this.btnDialog.TabIndex = 4;
this.btnDialog.Text = "Dialog";
//
@ -181,7 +181,7 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "DialogTest";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Test dialog please ignore";
this.Text = "Dialog test";
this.Controls.SetChildIndex(this.pnlMain, 0);
this.pnlMain.ResumeLayout(false);
this.tblMain.ResumeLayout(false);

View File

@ -13,7 +13,7 @@ namespace Example
// Add the control scroll message filter to re-route all mousewheel events
// to the control the user is currently hovering over with their cursor.
Application.AddMessageFilter(new ControlScrollFilter());
Application.AddMessageFilter(new DarkControlScrollFilter());
// Add the dock panel message filter to filter through for dock panel splitter
// input before letting events pass through to the rest of the application.