Changed action to toolbar-like style
This commit is contained in:
parent
bfb17b3492
commit
2f961ef416
@ -28,11 +28,13 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
this.tableLayout = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayout = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.flowLayoutBottom = new System.Windows.Forms.FlowLayoutPanel();
|
this.flowLayoutBottom = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
this.buttonAdd = new System.Windows.Forms.Button();
|
this.buttonAdd = new System.Windows.Forms.Button();
|
||||||
this.buttonRemove = new System.Windows.Forms.Button();
|
this.buttonRemove = new System.Windows.Forms.Button();
|
||||||
this.treeView = new System.Windows.Forms.TreeView();
|
this.treeView = new System.Windows.Forms.TreeView();
|
||||||
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.tableLayout.SuspendLayout();
|
this.tableLayout.SuspendLayout();
|
||||||
this.flowLayoutBottom.SuspendLayout();
|
this.flowLayoutBottom.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
@ -67,14 +69,15 @@
|
|||||||
// buttonAdd
|
// buttonAdd
|
||||||
//
|
//
|
||||||
this.buttonAdd.AutoSize = true;
|
this.buttonAdd.AutoSize = true;
|
||||||
|
this.buttonAdd.FlatAppearance.BorderSize = 0;
|
||||||
|
this.buttonAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonAdd.Image = global::UI_WinForms.Resources.Icons.icons8_add_folder_512;
|
this.buttonAdd.Image = global::UI_WinForms.Resources.Icons.icons8_add_folder_512;
|
||||||
this.buttonAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
||||||
this.buttonAdd.Location = new System.Drawing.Point(3, 3);
|
this.buttonAdd.Location = new System.Drawing.Point(3, 3);
|
||||||
this.buttonAdd.Name = "buttonAdd";
|
this.buttonAdd.Name = "buttonAdd";
|
||||||
this.buttonAdd.Size = new System.Drawing.Size(138, 60);
|
this.buttonAdd.Size = new System.Drawing.Size(60, 60);
|
||||||
this.buttonAdd.TabIndex = 0;
|
this.buttonAdd.TabIndex = 0;
|
||||||
this.buttonAdd.Text = "Add";
|
|
||||||
this.buttonAdd.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
this.buttonAdd.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||||
|
this.toolTip.SetToolTip(this.buttonAdd, "Add section");
|
||||||
this.buttonAdd.UseVisualStyleBackColor = true;
|
this.buttonAdd.UseVisualStyleBackColor = true;
|
||||||
this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
|
this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
|
||||||
//
|
//
|
||||||
@ -82,14 +85,15 @@
|
|||||||
//
|
//
|
||||||
this.buttonRemove.AutoSize = true;
|
this.buttonRemove.AutoSize = true;
|
||||||
this.buttonRemove.Enabled = false;
|
this.buttonRemove.Enabled = false;
|
||||||
|
this.buttonRemove.FlatAppearance.BorderSize = 0;
|
||||||
|
this.buttonRemove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonRemove.Image = global::UI_WinForms.Resources.Icons.icons8_delete_folder_512;
|
this.buttonRemove.Image = global::UI_WinForms.Resources.Icons.icons8_delete_folder_512;
|
||||||
this.buttonRemove.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
this.buttonRemove.Location = new System.Drawing.Point(69, 3);
|
||||||
this.buttonRemove.Location = new System.Drawing.Point(147, 3);
|
|
||||||
this.buttonRemove.Name = "buttonRemove";
|
this.buttonRemove.Name = "buttonRemove";
|
||||||
this.buttonRemove.Size = new System.Drawing.Size(138, 60);
|
this.buttonRemove.Size = new System.Drawing.Size(60, 60);
|
||||||
this.buttonRemove.TabIndex = 1;
|
this.buttonRemove.TabIndex = 1;
|
||||||
this.buttonRemove.Text = "Remove";
|
|
||||||
this.buttonRemove.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
this.buttonRemove.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||||
|
this.toolTip.SetToolTip(this.buttonRemove, "Removes the selected section");
|
||||||
this.buttonRemove.UseVisualStyleBackColor = true;
|
this.buttonRemove.UseVisualStyleBackColor = true;
|
||||||
this.buttonRemove.Click += new System.EventHandler(this.buttonRemove_Click);
|
this.buttonRemove.Click += new System.EventHandler(this.buttonRemove_Click);
|
||||||
//
|
//
|
||||||
@ -105,6 +109,14 @@
|
|||||||
this.treeView.TabIndex = 1;
|
this.treeView.TabIndex = 1;
|
||||||
this.treeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView_NodeMouseClick);
|
this.treeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView_NodeMouseClick);
|
||||||
//
|
//
|
||||||
|
// toolTip
|
||||||
|
//
|
||||||
|
this.toolTip.AutoPopDelay = 30000;
|
||||||
|
this.toolTip.InitialDelay = 500;
|
||||||
|
this.toolTip.ReshowDelay = 100;
|
||||||
|
this.toolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
|
||||||
|
this.toolTip.ToolTipTitle = "Help";
|
||||||
|
//
|
||||||
// SectionTree
|
// SectionTree
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
|
||||||
@ -127,5 +139,6 @@
|
|||||||
private Button buttonAdd;
|
private Button buttonAdd;
|
||||||
private Button buttonRemove;
|
private Button buttonRemove;
|
||||||
private TreeView treeView;
|
private TreeView treeView;
|
||||||
|
private ToolTip toolTip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,4 +57,7 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
Loading…
Reference in New Issue
Block a user