Add option to dock the search panel
This commit is contained in:
parent
d744e0b339
commit
ccde8d3276
@ -24,7 +24,9 @@ namespace Toolbox.Library.Forms
|
||||
}
|
||||
|
||||
public void AddControl(Control control) {
|
||||
contentContainer.Controls.Add(control);
|
||||
this.contentContainer.Controls.Clear();
|
||||
this.contentContainer.Controls.Add(this.stPanel1);
|
||||
stPanel1.Controls.Add(control);
|
||||
}
|
||||
|
||||
public override string Text
|
||||
@ -54,6 +56,7 @@ namespace Toolbox.Library.Forms
|
||||
private const int WM_SETREDRAW = 0xb;
|
||||
private const int WM_NCHITTEST = 0x84;
|
||||
protected STPanel contentContainer;
|
||||
private STPanel stPanel1;
|
||||
private const int WM_NCLBUTTONDOWN = 0xa1;
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
@ -101,6 +104,7 @@ namespace Toolbox.Library.Forms
|
||||
this.BtnMinimize = new System.Windows.Forms.PictureBox();
|
||||
this.BtnMinMax = new System.Windows.Forms.PictureBox();
|
||||
this.BtnClose = new System.Windows.Forms.PictureBox();
|
||||
this.stPanel1 = new Toolbox.Library.Forms.STPanel();
|
||||
this.contentContainer.SuspendLayout();
|
||||
this.TitleBar.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PicIcon)).BeginInit();
|
||||
@ -202,6 +206,13 @@ namespace Toolbox.Library.Forms
|
||||
this.BtnClose.MouseEnter += new System.EventHandler(this.BtnClose_MouseEnter);
|
||||
this.BtnClose.MouseLeave += new System.EventHandler(this.BtnClose_MouseLeave);
|
||||
//
|
||||
// stPanel1
|
||||
//
|
||||
this.stPanel1.Location = new System.Drawing.Point(0, 27);
|
||||
this.stPanel1.Name = "stPanel1";
|
||||
this.stPanel1.Size = new System.Drawing.Size(543, 366);
|
||||
this.stPanel1.TabIndex = 11;
|
||||
//
|
||||
// STForm
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(549, 398);
|
||||
|
@ -32,24 +32,31 @@
|
||||
this.splitter1 = new System.Windows.Forms.Splitter();
|
||||
this.stPanel2 = new Toolbox.Library.Forms.STPanel();
|
||||
this.stPanel1 = new Toolbox.Library.Forms.STPanel();
|
||||
this.stToolStrip1 = new Toolbox.Library.Forms.STToolStrip();
|
||||
this.stPanel4 = new Toolbox.Library.Forms.STPanel();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.treeViewCustom1 = new Toolbox.Library.TreeViewCustom();
|
||||
this.stToolStrip1 = new Toolbox.Library.Forms.STToolStrip();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.searchFormToolStrip = new System.Windows.Forms.ToolStripButton();
|
||||
this.stPanel3 = new Toolbox.Library.Forms.STPanel();
|
||||
this.searchImgPB = new System.Windows.Forms.PictureBox();
|
||||
this.activeEditorChkBox = new Toolbox.Library.Forms.STCheckBox();
|
||||
this.objectEditorMenu = new Toolbox.Library.Forms.STMenuStrip();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.sortToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.dockSearchListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.treeNodeContextMenu = new Toolbox.Library.Forms.STContextMenuStrip(this.components);
|
||||
this.searchFormToolStrip = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.searchImgPB = new System.Windows.Forms.PictureBox();
|
||||
this.stPanel1.SuspendLayout();
|
||||
this.stPanel4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.stToolStrip1.SuspendLayout();
|
||||
this.stPanel3.SuspendLayout();
|
||||
this.objectEditorMenu.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.searchImgPB)).BeginInit();
|
||||
this.objectEditorMenu.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitter1
|
||||
@ -72,8 +79,8 @@
|
||||
//
|
||||
// stPanel1
|
||||
//
|
||||
this.stPanel1.Controls.Add(this.stPanel4);
|
||||
this.stPanel1.Controls.Add(this.stToolStrip1);
|
||||
this.stPanel1.Controls.Add(this.treeViewCustom1);
|
||||
this.stPanel1.Controls.Add(this.stPanel3);
|
||||
this.stPanel1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.stPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
@ -82,6 +89,53 @@
|
||||
this.stPanel1.TabIndex = 11;
|
||||
this.stPanel1.Resize += new System.EventHandler(this.stPanel1_Resize);
|
||||
//
|
||||
// stPanel4
|
||||
//
|
||||
this.stPanel4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.stPanel4.Controls.Add(this.splitContainer1);
|
||||
this.stPanel4.Location = new System.Drawing.Point(3, 54);
|
||||
this.stPanel4.Name = "stPanel4";
|
||||
this.stPanel4.Size = new System.Drawing.Size(305, 485);
|
||||
this.stPanel4.TabIndex = 4;
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.treeViewCustom1);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(305, 485);
|
||||
this.splitContainer1.SplitterDistance = 201;
|
||||
this.splitContainer1.TabIndex = 1;
|
||||
this.splitContainer1.Panel1Collapsed = true;
|
||||
//
|
||||
// treeViewCustom1
|
||||
//
|
||||
this.treeViewCustom1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.treeViewCustom1.CheckBoxes = true;
|
||||
this.treeViewCustom1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.treeViewCustom1.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll;
|
||||
this.treeViewCustom1.ImageIndex = 0;
|
||||
this.treeViewCustom1.Location = new System.Drawing.Point(0, 0);
|
||||
this.treeViewCustom1.Name = "treeViewCustom1";
|
||||
this.treeViewCustom1.SelectedImageIndex = 0;
|
||||
this.treeViewCustom1.Size = new System.Drawing.Size(305, 280);
|
||||
this.treeViewCustom1.TabIndex = 0;
|
||||
this.treeViewCustom1.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeViewCustom1_AfterCheck);
|
||||
this.treeViewCustom1.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(this.treeViewCustom1_DrawNode);
|
||||
this.treeViewCustom1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewCustom1_AfterSelect);
|
||||
this.treeViewCustom1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeViewCustom1_MouseClick);
|
||||
this.treeViewCustom1.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeViewCustom1_DragDrop);
|
||||
this.treeViewCustom1.DragOver += new System.Windows.Forms.DragEventHandler(this.treeViewCustom1_DragOver);
|
||||
this.treeViewCustom1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeViewCustom1_KeyPress);
|
||||
this.treeViewCustom1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.treeViewCustom1_DoubleClick);
|
||||
//
|
||||
// stToolStrip1
|
||||
//
|
||||
this.stToolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
@ -93,28 +147,25 @@
|
||||
this.stToolStrip1.TabIndex = 3;
|
||||
this.stToolStrip1.Text = "stToolStrip1";
|
||||
//
|
||||
// treeViewCustom1
|
||||
// toolStripButton1
|
||||
//
|
||||
this.treeViewCustom1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.treeViewCustom1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.treeViewCustom1.CheckBoxes = true;
|
||||
this.treeViewCustom1.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll;
|
||||
this.treeViewCustom1.ImageIndex = 0;
|
||||
this.treeViewCustom1.Location = new System.Drawing.Point(1, 55);
|
||||
this.treeViewCustom1.Name = "treeViewCustom1";
|
||||
this.treeViewCustom1.SelectedImageIndex = 0;
|
||||
this.treeViewCustom1.Size = new System.Drawing.Size(311, 486);
|
||||
this.treeViewCustom1.TabIndex = 0;
|
||||
this.treeViewCustom1.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeViewCustom1_AfterCheck);
|
||||
this.treeViewCustom1.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(this.treeViewCustom1_DrawNode);
|
||||
this.treeViewCustom1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewCustom1_AfterSelect);
|
||||
this.treeViewCustom1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeViewCustom1_MouseClick);
|
||||
this.treeViewCustom1.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeViewCustom1_DragDrop);
|
||||
this.treeViewCustom1.DragOver += new System.Windows.Forms.DragEventHandler(this.treeViewCustom1_DragOver);
|
||||
this.treeViewCustom1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeViewCustom1_KeyPress);
|
||||
this.treeViewCustom1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.treeViewCustom1_DoubleClick);
|
||||
this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = global::Toolbox.Library.Properties.Resources.AddIcon;
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
|
||||
this.toolStripButton1.Text = "toolStripButton1";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// searchFormToolStrip
|
||||
//
|
||||
this.searchFormToolStrip.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.searchFormToolStrip.Image = global::Toolbox.Library.Properties.Resources.Antu_edit_find_mail1;
|
||||
this.searchFormToolStrip.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.searchFormToolStrip.Name = "searchFormToolStrip";
|
||||
this.searchFormToolStrip.Size = new System.Drawing.Size(23, 22);
|
||||
this.searchFormToolStrip.Text = "toolStripButton1";
|
||||
this.searchFormToolStrip.Click += new System.EventHandler(this.searchFormToolStrip_Click);
|
||||
//
|
||||
// stPanel3
|
||||
//
|
||||
@ -127,6 +178,18 @@
|
||||
this.stPanel3.Size = new System.Drawing.Size(314, 26);
|
||||
this.stPanel3.TabIndex = 2;
|
||||
//
|
||||
// searchImgPB
|
||||
//
|
||||
this.searchImgPB.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.searchImgPB.BackColor = System.Drawing.Color.Transparent;
|
||||
this.searchImgPB.Image = global::Toolbox.Library.Properties.Resources.Antu_edit_find_mail_svg;
|
||||
this.searchImgPB.Location = new System.Drawing.Point(-654, 5);
|
||||
this.searchImgPB.Name = "searchImgPB";
|
||||
this.searchImgPB.Size = new System.Drawing.Size(22, 17);
|
||||
this.searchImgPB.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.searchImgPB.TabIndex = 1;
|
||||
this.searchImgPB.TabStop = false;
|
||||
//
|
||||
// activeEditorChkBox
|
||||
//
|
||||
this.activeEditorChkBox.AutoSize = true;
|
||||
@ -168,7 +231,8 @@
|
||||
// viewToolStripMenuItem
|
||||
//
|
||||
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.sortToolStripMenuItem});
|
||||
this.sortToolStripMenuItem,
|
||||
this.dockSearchListToolStripMenuItem});
|
||||
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
|
||||
this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 22);
|
||||
this.viewToolStripMenuItem.Text = "View";
|
||||
@ -176,47 +240,23 @@
|
||||
// sortToolStripMenuItem
|
||||
//
|
||||
this.sortToolStripMenuItem.Name = "sortToolStripMenuItem";
|
||||
this.sortToolStripMenuItem.Size = new System.Drawing.Size(95, 22);
|
||||
this.sortToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.sortToolStripMenuItem.Text = "Sort";
|
||||
this.sortToolStripMenuItem.Click += new System.EventHandler(this.sortToolStripMenuItem_Click);
|
||||
//
|
||||
// dockSearchListToolStripMenuItem
|
||||
//
|
||||
this.dockSearchListToolStripMenuItem.CheckOnClick = true;
|
||||
this.dockSearchListToolStripMenuItem.Name = "dockSearchListToolStripMenuItem";
|
||||
this.dockSearchListToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.dockSearchListToolStripMenuItem.Text = "Dock Search List";
|
||||
this.dockSearchListToolStripMenuItem.Click += new System.EventHandler(this.dockSearchListToolStripMenuItem_Click);
|
||||
//
|
||||
// treeNodeContextMenu
|
||||
//
|
||||
this.treeNodeContextMenu.Name = "treeNodeContextMenu";
|
||||
this.treeNodeContextMenu.Size = new System.Drawing.Size(61, 4);
|
||||
//
|
||||
// searchFormToolStrip
|
||||
//
|
||||
this.searchFormToolStrip.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.searchFormToolStrip.Image = global::Toolbox.Library.Properties.Resources.Antu_edit_find_mail1;
|
||||
this.searchFormToolStrip.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.searchFormToolStrip.Name = "searchFormToolStrip";
|
||||
this.searchFormToolStrip.Size = new System.Drawing.Size(23, 22);
|
||||
this.searchFormToolStrip.Text = "toolStripButton1";
|
||||
this.searchFormToolStrip.Click += new System.EventHandler(this.searchFormToolStrip_Click);
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = global::Toolbox.Library.Properties.Resources.AddIcon;
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
|
||||
this.toolStripButton1.Text = "toolStripButton1";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// searchImgPB
|
||||
//
|
||||
this.searchImgPB.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.searchImgPB.BackColor = System.Drawing.Color.Transparent;
|
||||
this.searchImgPB.Image = global::Toolbox.Library.Properties.Resources.Antu_edit_find_mail_svg;
|
||||
this.searchImgPB.Location = new System.Drawing.Point(-654, 5);
|
||||
this.searchImgPB.Name = "searchImgPB";
|
||||
this.searchImgPB.Size = new System.Drawing.Size(22, 17);
|
||||
this.searchImgPB.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.searchImgPB.TabIndex = 1;
|
||||
this.searchImgPB.TabStop = false;
|
||||
//
|
||||
// ObjectEditorTree
|
||||
//
|
||||
this.Controls.Add(this.splitter1);
|
||||
@ -226,13 +266,17 @@
|
||||
this.Size = new System.Drawing.Size(907, 542);
|
||||
this.stPanel1.ResumeLayout(false);
|
||||
this.stPanel1.PerformLayout();
|
||||
this.stPanel4.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.stToolStrip1.ResumeLayout(false);
|
||||
this.stToolStrip1.PerformLayout();
|
||||
this.stPanel3.ResumeLayout(false);
|
||||
this.stPanel3.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.searchImgPB)).EndInit();
|
||||
this.objectEditorMenu.ResumeLayout(false);
|
||||
this.objectEditorMenu.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.searchImgPB)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -255,5 +299,8 @@
|
||||
private STToolStrip stToolStrip1;
|
||||
private System.Windows.Forms.ToolStripButton searchFormToolStrip;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
private STPanel stPanel4;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private System.Windows.Forms.ToolStripMenuItem dockSearchListToolStripMenuItem;
|
||||
}
|
||||
}
|
@ -21,6 +21,18 @@ namespace Toolbox.Library.Forms
|
||||
{
|
||||
private bool SuppressAfterSelectEvent = false;
|
||||
|
||||
private bool IsSearchPanelDocked
|
||||
{
|
||||
get
|
||||
{
|
||||
return dockSearchListToolStripMenuItem.Checked;
|
||||
}
|
||||
set
|
||||
{
|
||||
dockSearchListToolStripMenuItem.Checked = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectEditor ObjectEditor;
|
||||
|
||||
public void BeginUpdate() { treeViewCustom1.BeginUpdate(); }
|
||||
@ -105,6 +117,8 @@ namespace Toolbox.Library.Forms
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
UpdateSearchPanelDockState();
|
||||
|
||||
ObjectEditor = objectEditor;
|
||||
|
||||
if (Runtime.ObjectEditor.ListPanelWidth > 0)
|
||||
@ -230,7 +244,7 @@ namespace Toolbox.Library.Forms
|
||||
{
|
||||
if (searchForm != null)
|
||||
{
|
||||
searchForm.Close();
|
||||
searchForm.OnControlClosing();
|
||||
searchForm.Dispose();
|
||||
}
|
||||
|
||||
@ -591,16 +605,45 @@ namespace Toolbox.Library.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private SearchNodeForm searchForm;
|
||||
private SearchNodePanel searchForm;
|
||||
private void searchFormToolStrip_Click(object sender, EventArgs e)
|
||||
{
|
||||
searchForm = new SearchNodeForm(treeViewCustom1);
|
||||
searchForm.Show(this);
|
||||
searchForm = new SearchNodePanel(treeViewCustom1);
|
||||
searchForm.Dock = DockStyle.Fill;
|
||||
STForm form = new STForm();
|
||||
|
||||
var panel = new STPanel() { Dock = DockStyle.Fill };
|
||||
panel.Controls.Add(searchForm);
|
||||
form.AddControl(panel);
|
||||
form.Show(this);
|
||||
}
|
||||
|
||||
private void treeViewCustom1_DoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void dockSearchListToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
UpdateSearchPanelDockState();
|
||||
}
|
||||
|
||||
|
||||
private void UpdateSearchPanelDockState()
|
||||
{
|
||||
if (IsSearchPanelDocked)
|
||||
{
|
||||
splitContainer1.Panel1Collapsed = false;
|
||||
splitContainer1.Panel1.Controls.Clear();
|
||||
|
||||
searchForm = new SearchNodePanel(treeViewCustom1);
|
||||
searchForm.Dock = DockStyle.Fill;
|
||||
splitContainer1.Panel1.Controls.Add(searchForm);
|
||||
}
|
||||
else
|
||||
{
|
||||
splitContainer1.Panel1Collapsed = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace Toolbox.Library.Forms
|
||||
{
|
||||
partial class SearchNodeForm
|
||||
partial class SearchNodePanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -39,33 +39,8 @@
|
||||
this.listViewModeCB = new Toolbox.Library.Forms.STComboBox();
|
||||
this.lblFoundEntries = new Toolbox.Library.Forms.STLabel();
|
||||
this.chkUpdateDoubleClick = new Toolbox.Library.Forms.STCheckBox();
|
||||
this.contentContainer.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// contentContainer
|
||||
//
|
||||
this.contentContainer.Controls.Add(this.chkUpdateDoubleClick);
|
||||
this.contentContainer.Controls.Add(this.lblFoundEntries);
|
||||
this.contentContainer.Controls.Add(this.listViewModeCB);
|
||||
this.contentContainer.Controls.Add(this.chkAutoSearch);
|
||||
this.contentContainer.Controls.Add(this.stLabel1);
|
||||
this.contentContainer.Controls.Add(this.searchBtn);
|
||||
this.contentContainer.Controls.Add(this.chkSearchSubNodes);
|
||||
this.contentContainer.Controls.Add(this.chkMatchCase);
|
||||
this.contentContainer.Controls.Add(this.searchTB);
|
||||
this.contentContainer.Controls.Add(this.listViewCustom1);
|
||||
this.contentContainer.Size = new System.Drawing.Size(402, 393);
|
||||
this.contentContainer.Controls.SetChildIndex(this.listViewCustom1, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.searchTB, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.chkMatchCase, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.chkSearchSubNodes, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.searchBtn, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.stLabel1, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.chkAutoSearch, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.listViewModeCB, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.lblFoundEntries, 0);
|
||||
this.contentContainer.Controls.SetChildIndex(this.chkUpdateDoubleClick, 0);
|
||||
//
|
||||
// listViewCustom1
|
||||
//
|
||||
this.listViewCustom1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
@ -75,7 +50,7 @@
|
||||
this.listViewCustom1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.columnHeader1});
|
||||
this.listViewCustom1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
|
||||
this.listViewCustom1.Location = new System.Drawing.Point(5, 100);
|
||||
this.listViewCustom1.Location = new System.Drawing.Point(5, 77);
|
||||
this.listViewCustom1.Name = "listViewCustom1";
|
||||
this.listViewCustom1.OwnerDraw = true;
|
||||
this.listViewCustom1.Size = new System.Drawing.Size(397, 263);
|
||||
@ -93,7 +68,7 @@
|
||||
// searchTB
|
||||
//
|
||||
this.searchTB.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.searchTB.Location = new System.Drawing.Point(49, 31);
|
||||
this.searchTB.Location = new System.Drawing.Point(48, 3);
|
||||
this.searchTB.Name = "searchTB";
|
||||
this.searchTB.Size = new System.Drawing.Size(248, 20);
|
||||
this.searchTB.TabIndex = 12;
|
||||
@ -102,7 +77,7 @@
|
||||
// chkMatchCase
|
||||
//
|
||||
this.chkMatchCase.AutoSize = true;
|
||||
this.chkMatchCase.Location = new System.Drawing.Point(9, 59);
|
||||
this.chkMatchCase.Location = new System.Drawing.Point(8, 31);
|
||||
this.chkMatchCase.Name = "chkMatchCase";
|
||||
this.chkMatchCase.Size = new System.Drawing.Size(86, 17);
|
||||
this.chkMatchCase.TabIndex = 13;
|
||||
@ -113,7 +88,7 @@
|
||||
// chkSearchSubNodes
|
||||
//
|
||||
this.chkSearchSubNodes.AutoSize = true;
|
||||
this.chkSearchSubNodes.Location = new System.Drawing.Point(196, 59);
|
||||
this.chkSearchSubNodes.Location = new System.Drawing.Point(195, 31);
|
||||
this.chkSearchSubNodes.Name = "chkSearchSubNodes";
|
||||
this.chkSearchSubNodes.Size = new System.Drawing.Size(111, 17);
|
||||
this.chkSearchSubNodes.TabIndex = 14;
|
||||
@ -123,7 +98,7 @@
|
||||
// searchBtn
|
||||
//
|
||||
this.searchBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.searchBtn.Location = new System.Drawing.Point(318, 55);
|
||||
this.searchBtn.Location = new System.Drawing.Point(317, 27);
|
||||
this.searchBtn.Name = "searchBtn";
|
||||
this.searchBtn.Size = new System.Drawing.Size(75, 23);
|
||||
this.searchBtn.TabIndex = 15;
|
||||
@ -134,7 +109,7 @@
|
||||
// stLabel1
|
||||
//
|
||||
this.stLabel1.AutoSize = true;
|
||||
this.stLabel1.Location = new System.Drawing.Point(9, 33);
|
||||
this.stLabel1.Location = new System.Drawing.Point(8, 5);
|
||||
this.stLabel1.Name = "stLabel1";
|
||||
this.stLabel1.Size = new System.Drawing.Size(38, 13);
|
||||
this.stLabel1.TabIndex = 16;
|
||||
@ -143,7 +118,7 @@
|
||||
// chkAutoSearch
|
||||
//
|
||||
this.chkAutoSearch.AutoSize = true;
|
||||
this.chkAutoSearch.Location = new System.Drawing.Point(101, 59);
|
||||
this.chkAutoSearch.Location = new System.Drawing.Point(100, 31);
|
||||
this.chkAutoSearch.Name = "chkAutoSearch";
|
||||
this.chkAutoSearch.Size = new System.Drawing.Size(85, 17);
|
||||
this.chkAutoSearch.TabIndex = 17;
|
||||
@ -157,7 +132,7 @@
|
||||
this.listViewModeCB.BorderStyle = System.Windows.Forms.ButtonBorderStyle.Solid;
|
||||
this.listViewModeCB.ButtonColor = System.Drawing.Color.Empty;
|
||||
this.listViewModeCB.FormattingEnabled = true;
|
||||
this.listViewModeCB.Location = new System.Drawing.Point(5, 369);
|
||||
this.listViewModeCB.Location = new System.Drawing.Point(5, 346);
|
||||
this.listViewModeCB.Name = "listViewModeCB";
|
||||
this.listViewModeCB.ReadOnly = true;
|
||||
this.listViewModeCB.Size = new System.Drawing.Size(143, 21);
|
||||
@ -168,7 +143,7 @@
|
||||
//
|
||||
this.lblFoundEntries.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lblFoundEntries.AutoSize = true;
|
||||
this.lblFoundEntries.Location = new System.Drawing.Point(163, 372);
|
||||
this.lblFoundEntries.Location = new System.Drawing.Point(163, 349);
|
||||
this.lblFoundEntries.Name = "lblFoundEntries";
|
||||
this.lblFoundEntries.Size = new System.Drawing.Size(75, 13);
|
||||
this.lblFoundEntries.TabIndex = 19;
|
||||
@ -177,24 +152,31 @@
|
||||
// chkUpdateDoubleClick
|
||||
//
|
||||
this.chkUpdateDoubleClick.AutoSize = true;
|
||||
this.chkUpdateDoubleClick.Location = new System.Drawing.Point(9, 82);
|
||||
this.chkUpdateDoubleClick.Location = new System.Drawing.Point(8, 54);
|
||||
this.chkUpdateDoubleClick.Name = "chkUpdateDoubleClick";
|
||||
this.chkUpdateDoubleClick.Size = new System.Drawing.Size(138, 17);
|
||||
this.chkUpdateDoubleClick.TabIndex = 20;
|
||||
this.chkUpdateDoubleClick.Text = "Update by Double Click";
|
||||
this.chkUpdateDoubleClick.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// SearchNodeForm
|
||||
// SearchNodePanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(408, 398);
|
||||
this.Name = "SearchNodeForm";
|
||||
this.Text = "Search Nodes";
|
||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.SearchNodeForm_FormClosed);
|
||||
this.contentContainer.ResumeLayout(false);
|
||||
this.contentContainer.PerformLayout();
|
||||
this.Controls.Add(this.chkUpdateDoubleClick);
|
||||
this.Controls.Add(this.lblFoundEntries);
|
||||
this.Controls.Add(this.listViewModeCB);
|
||||
this.Controls.Add(this.chkAutoSearch);
|
||||
this.Controls.Add(this.stLabel1);
|
||||
this.Controls.Add(this.searchBtn);
|
||||
this.Controls.Add(this.chkSearchSubNodes);
|
||||
this.Controls.Add(this.chkMatchCase);
|
||||
this.Controls.Add(this.searchTB);
|
||||
this.Controls.Add(this.listViewCustom1);
|
||||
this.Name = "SearchNodePanel";
|
||||
this.Size = new System.Drawing.Size(408, 375);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Toolbox.Library.Forms
|
||||
{
|
||||
public partial class SearchNodeForm : STForm
|
||||
public partial class SearchNodePanel : STUserControl
|
||||
{
|
||||
private TreeView treeView;
|
||||
|
||||
@ -21,7 +21,7 @@ namespace Toolbox.Library.Forms
|
||||
|
||||
private List<TreeNode> TreenodeLookup = new List<TreeNode>();
|
||||
|
||||
public SearchNodeForm(TreeView tree)
|
||||
public SearchNodePanel(TreeView tree)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
@ -123,7 +123,7 @@ namespace Toolbox.Library.Forms
|
||||
UpdateSearchResults(searchTB.Text);
|
||||
}
|
||||
|
||||
private void SearchNodeForm_FormClosed(object sender, FormClosedEventArgs e)
|
||||
public override void OnControlClosing()
|
||||
{
|
||||
treeView.HideSelection = true;
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user