mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-02 02:24:38 +12:00
#53, 0.9.2.28
This commit is contained in:
parent
0b3e096ec6
commit
9d1defde3b
|
@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.9.2.27")]
|
||||
[assembly: AssemblyFileVersion("0.9.2.27")]
|
||||
[assembly: AssemblyVersion("0.9.2.28")]
|
||||
[assembly: AssemblyFileVersion("0.9.2.28")]
|
||||
|
|
6
Properties/Resources.Designer.cs
generated
6
Properties/Resources.Designer.cs
generated
|
@ -251,12 +251,12 @@ namespace SystemTrayMenu.Properties {
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap search2 {
|
||||
public static System.Drawing.Icon search2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("search2", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
return ((System.Drawing.Icon)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -185,6 +185,6 @@
|
|||
<value>..\Resources\L110.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="search2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\search1.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<value>..\Resources\search1.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
67
UserInterface/Menu.Designer.cs
generated
67
UserInterface/Menu.Designer.cs
generated
|
@ -29,17 +29,17 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.dgv = new System.Windows.Forms.DataGridView();
|
||||
this.ColumnIcon = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.ColumnText = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.labelTitle = new SystemTrayMenu.UserInterface.LabelNoCopy();
|
||||
this.tableLayoutPanelSearch = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.textBoxSearch = new System.Windows.Forms.TextBox();
|
||||
this.pictureBoxSearch = new System.Windows.Forms.PictureBox();
|
||||
this.labelTitle = new SystemTrayMenu.UserInterface.LabelNoCopy();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit();
|
||||
this.tableLayoutPanel.SuspendLayout();
|
||||
this.tableLayoutPanelSearch.SuspendLayout();
|
||||
|
@ -68,8 +68,8 @@
|
|||
this.dgv.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
|
||||
this.dgv.RowHeadersVisible = false;
|
||||
this.dgv.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0)));
|
||||
this.dgv.RowsDefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0)));
|
||||
this.dgv.RowsDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgv.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.dgv.RowTemplate.Height = 20;
|
||||
this.dgv.RowTemplate.ReadOnly = true;
|
||||
|
@ -85,10 +85,10 @@
|
|||
//
|
||||
// ColumnIcon
|
||||
//
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.NullValue = "System.Drawing.Icon";
|
||||
dataGridViewCellStyle1.Padding = new System.Windows.Forms.Padding(3, 2, 6, 2);
|
||||
this.ColumnIcon.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle4.NullValue = "System.Drawing.Icon";
|
||||
dataGridViewCellStyle4.Padding = new System.Windows.Forms.Padding(3, 2, 6, 2);
|
||||
this.ColumnIcon.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.ColumnIcon.Frozen = true;
|
||||
this.ColumnIcon.HeaderText = "ColumnIcon";
|
||||
this.ColumnIcon.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||
|
@ -99,9 +99,9 @@
|
|||
//
|
||||
// ColumnText
|
||||
//
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.Padding = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||
this.ColumnText.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle5.Padding = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||
this.ColumnText.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.ColumnText.Frozen = true;
|
||||
this.ColumnText.HeaderText = "ColumnText";
|
||||
this.ColumnText.MaxInputLength = 40;
|
||||
|
@ -132,6 +132,26 @@
|
|||
this.tableLayoutPanel.TabIndex = 3;
|
||||
this.tableLayoutPanel.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.dgv_MouseWheel);
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.labelTitle.AutoSize = true;
|
||||
this.labelTitle.BackColor = System.Drawing.Color.Azure;
|
||||
this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelTitle.ForeColor = System.Drawing.Color.Black;
|
||||
this.labelTitle.Location = new System.Drawing.Point(0, 0);
|
||||
this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Padding = new System.Windows.Forms.Padding(3, 0, 0, 1);
|
||||
this.labelTitle.Size = new System.Drawing.Size(157, 14);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "STM";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.labelTitle.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.LabelTitle_MouseDoubleClick);
|
||||
this.labelTitle.MouseEnter += new System.EventHandler(this.LabelTitle_MouseEnter);
|
||||
this.labelTitle.MouseLeave += new System.EventHandler(this.LabelTitle_MouseLeave);
|
||||
this.labelTitle.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.dgv_MouseWheel);
|
||||
//
|
||||
// tableLayoutPanelSearch
|
||||
//
|
||||
this.tableLayoutPanelSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
|
@ -166,7 +186,6 @@
|
|||
// pictureBoxSearch
|
||||
//
|
||||
this.pictureBoxSearch.BackColor = System.Drawing.Color.White;
|
||||
this.pictureBoxSearch.BackgroundImage = global::SystemTrayMenu.Properties.Resources.search2;
|
||||
this.pictureBoxSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.pictureBoxSearch.Location = new System.Drawing.Point(3, 3);
|
||||
this.pictureBoxSearch.Name = "pictureBoxSearch";
|
||||
|
@ -174,26 +193,6 @@
|
|||
this.pictureBoxSearch.TabIndex = 1;
|
||||
this.pictureBoxSearch.TabStop = false;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.labelTitle.AutoSize = true;
|
||||
this.labelTitle.BackColor = System.Drawing.Color.Azure;
|
||||
this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelTitle.ForeColor = System.Drawing.Color.Black;
|
||||
this.labelTitle.Location = new System.Drawing.Point(0, 0);
|
||||
this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Padding = new System.Windows.Forms.Padding(3, 0, 0, 1);
|
||||
this.labelTitle.Size = new System.Drawing.Size(157, 14);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "STM";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.labelTitle.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.LabelTitle_MouseDoubleClick);
|
||||
this.labelTitle.MouseEnter += new System.EventHandler(this.LabelTitle_MouseEnter);
|
||||
this.labelTitle.MouseLeave += new System.EventHandler(this.LabelTitle_MouseLeave);
|
||||
this.labelTitle.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.dgv_MouseWheel);
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
|
|
|
@ -79,10 +79,12 @@ namespace SystemTrayMenu.UserInterface
|
|||
fading.Hide += Hide;
|
||||
|
||||
InitializeComponent();
|
||||
//pictureBoxSearch.Image = Bitmap.FromHicon(new Icon(
|
||||
// Properties.Resources.search,new Size(
|
||||
// pictureBoxSearch.Width,
|
||||
// pictureBoxSearch.Height)).Handle);
|
||||
pictureBoxSearch.Paint += PictureBoxSearch_Paint;
|
||||
void PictureBoxSearch_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
e.Graphics.DrawIcon(Properties.Resources.search2,
|
||||
new Rectangle(0, 0, pictureBoxSearch.Width, pictureBoxSearch.Height));
|
||||
}
|
||||
SetDoubleBuffer(dgv, true);
|
||||
|
||||
DataGridViewCellStyle dgvCellStyle = new DataGridViewCellStyle
|
||||
|
|
Loading…
Reference in a new issue