diff options
| author | lempamo <[email protected]> | 2017-10-24 19:21:45 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-10-24 19:21:45 -0400 |
| commit | 57817b7534a620841c9a825884a6f5e7ffc2f219 (patch) | |
| tree | 92645540179f49f795fe1f97f0acdb9a80b339df /Histacom2.Engine/Template | |
| parent | aff052b475abc5d4035369a85fa471f62cad021b (diff) | |
| download | histacom2-57817b7534a620841c9a825884a6f5e7ffc2f219.tar.gz histacom2-57817b7534a620841c9a825884a6f5e7ffc2f219.tar.bz2 histacom2-57817b7534a620841c9a825884a6f5e7ffc2f219.zip | |
some hack4 stuff
Diffstat (limited to 'Histacom2.Engine/Template')
| -rw-r--r-- | Histacom2.Engine/Template/WinXP.Designer.cs | 12 | ||||
| -rw-r--r-- | Histacom2.Engine/Template/WinXP.cs | 1 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Histacom2.Engine/Template/WinXP.Designer.cs b/Histacom2.Engine/Template/WinXP.Designer.cs index 0d1e060..a97f44b 100644 --- a/Histacom2.Engine/Template/WinXP.Designer.cs +++ b/Histacom2.Engine/Template/WinXP.Designer.cs @@ -90,7 +90,7 @@ // toprightcorner // this.toprightcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.toprightcorner.BackColor = System.Drawing.Color.Magenta; + this.toprightcorner.BackColor = System.Drawing.Color.Transparent; this.toprightcorner.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("toprightcorner.BackgroundImage"))); this.toprightcorner.Location = new System.Drawing.Point(294, 0); this.toprightcorner.Name = "toprightcorner"; @@ -109,7 +109,7 @@ // // topleftcorner // - this.topleftcorner.BackColor = System.Drawing.Color.Magenta; + this.topleftcorner.BackColor = System.Drawing.Color.Transparent; this.topleftcorner.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("topleftcorner.BackgroundImage"))); this.topleftcorner.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.topleftcorner.Location = new System.Drawing.Point(0, 0); @@ -178,11 +178,11 @@ // this.programname.AutoSize = true; this.programname.BackColor = System.Drawing.Color.Transparent; - this.programname.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.programname.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.programname.ForeColor = System.Drawing.Color.White; - this.programname.Location = new System.Drawing.Point(25, 8); + this.programname.Location = new System.Drawing.Point(25, 7); this.programname.Name = "programname"; - this.programname.Size = new System.Drawing.Size(99, 13); + this.programname.Size = new System.Drawing.Size(112, 16); this.programname.TabIndex = 3; this.programname.Text = "Application Title"; this.programname.MouseDown += new System.Windows.Forms.MouseEventHandler(this.top_MouseDown); @@ -221,11 +221,13 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Magenta; this.ClientSize = new System.Drawing.Size(300, 300); this.Controls.Add(this.program); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "WinXP"; this.Text = "WinXP"; + this.TransparencyKey = System.Drawing.Color.Magenta; this.Load += new System.EventHandler(this.WinXP_Load); this.program.ResumeLayout(false); this.top.ResumeLayout(false); diff --git a/Histacom2.Engine/Template/WinXP.cs b/Histacom2.Engine/Template/WinXP.cs index fa26611..9406b87 100644 --- a/Histacom2.Engine/Template/WinXP.cs +++ b/Histacom2.Engine/Template/WinXP.cs @@ -17,6 +17,7 @@ namespace Histacom2.Engine.Template public WinXP() { InitializeComponent(); + SetStyle(ControlStyles.SupportsTransparentBackColor, true); DoubleBuffered = true; } |
