mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
DoubleBuffers
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
# Changelog
|
||||
|
||||
## 10/08/2020 - v0.8.0.0
|
||||
## 11/08/2020 - v0.8.0.0
|
||||
|
||||
* (Add) LGS and LGS30 file format for Longer Orange 10 and 30 (ezrec/uv3dp#105)
|
||||
* (Add) CWS: Support the GRAY2RGB and RBG2GRAY encoding for Bene Mono
|
||||
|
||||
@@ -13,6 +13,7 @@ using System.Windows.Forms;
|
||||
using UVtools.Core.Extensions;
|
||||
using UVtools.Core.FileFormats;
|
||||
using UVtools.Core.Operations;
|
||||
using UVtools.GUI.Extensions;
|
||||
|
||||
namespace UVtools.GUI.Controls.Tools
|
||||
{
|
||||
@@ -119,8 +120,11 @@ namespace UVtools.GUI.Controls.Tools
|
||||
return;
|
||||
}
|
||||
|
||||
table.SetDoubleBuffered();
|
||||
|
||||
int rowIndex = 1;
|
||||
RowControls = new RowControl[Operation.Modifiers.Length];
|
||||
//table.RowCount = Operation.Modifiers.Length+1;
|
||||
foreach (var modifier in Operation.Modifiers)
|
||||
{
|
||||
byte column = 0;
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace UVtools.GUI.Extensions
|
||||
{
|
||||
public static class ControlExtensions
|
||||
{
|
||||
public static void SetDoubleBuffered(this System.Windows.Forms.Control c)
|
||||
{
|
||||
if (System.Windows.Forms.SystemInformation.TerminalServerSession)
|
||||
return;
|
||||
System.Reflection.PropertyInfo aProp = typeof(System.Windows.Forms.Control).GetProperty("DoubleBuffered", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
|
||||
aProp.SetValue(c, true, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -417,6 +417,7 @@ namespace UVtools.GUI.Forms
|
||||
this.CancelButton = this.btnCancel;
|
||||
this.ClientSize = new System.Drawing.Size(554, 281);
|
||||
this.Controls.Add(this.table);
|
||||
this.DoubleBuffered = true;
|
||||
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
|
||||
@@ -179,6 +179,15 @@ namespace UVtools.GUI.Forms
|
||||
#endregion
|
||||
|
||||
#region Overrides
|
||||
protected override CreateParams CreateParams
|
||||
{
|
||||
get
|
||||
{
|
||||
CreateParams cp = base.CreateParams;
|
||||
cp.ExStyle |= 0x02000000;
|
||||
return cp;
|
||||
}
|
||||
}
|
||||
protected override void OnKeyUp(KeyEventArgs e)
|
||||
{
|
||||
base.OnKeyUp(e);
|
||||
|
||||
@@ -291,6 +291,15 @@ namespace UVtools.GUI
|
||||
#endregion
|
||||
|
||||
#region Overrides
|
||||
protected override CreateParams CreateParams
|
||||
{
|
||||
get
|
||||
{
|
||||
CreateParams cp = base.CreateParams;
|
||||
cp.ExStyle |= 0x02000000;
|
||||
return cp;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
|
||||
@@ -276,6 +276,7 @@
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Extensions\BitmapExtension.cs" />
|
||||
<Compile Include="Extensions\ControlExtensions.cs" />
|
||||
<Compile Include="Extensions\GUIExtensions.cs" />
|
||||
<Compile Include="Forms\FrmBenchmark.cs">
|
||||
<SubType>Form</SubType>
|
||||
|
||||
Reference in New Issue
Block a user