* UIProcessBar: 调整最小高度为3

This commit is contained in:
Sunny 2021-10-14 21:11:54 +08:00
parent af5d0ddcc0
commit a5db925bfc
7 changed files with 18 additions and 9 deletions

Binary file not shown.

Binary file not shown.

View File

@ -217,7 +217,8 @@ namespace Sunny.UI.Demo
this.uiProcessBar2.Location = new System.Drawing.Point(30, 123);
this.uiProcessBar2.MinimumSize = new System.Drawing.Size(70, 1);
this.uiProcessBar2.Name = "uiProcessBar2";
this.uiProcessBar2.Size = new System.Drawing.Size(318, 5);
this.uiProcessBar2.Radius = 0;
this.uiProcessBar2.Size = new System.Drawing.Size(318, 3);
this.uiProcessBar2.TabIndex = 90;
this.uiProcessBar2.Text = "50.0%";
this.uiProcessBar2.Value = 50;
@ -318,7 +319,7 @@ namespace Sunny.UI.Demo
this.uiProcessBar3.Location = new System.Drawing.Point(527, 325);
this.uiProcessBar3.MinimumSize = new System.Drawing.Size(70, 1);
this.uiProcessBar3.Name = "uiProcessBar3";
this.uiProcessBar3.Size = new System.Drawing.Size(203, 169);
this.uiProcessBar3.Size = new System.Drawing.Size(173, 169);
this.uiProcessBar3.TabIndex = 103;
this.uiProcessBar3.Value = 50;
//

View File

@ -43,8 +43,7 @@
<HintPath>..\Bin\net40\SunnyUI.dll</HintPath>
</Reference>
<Reference Include="SunnyUI.Common, Version=3.0.8.0, Culture=neutral, PublicKeyToken=5a271fb7ba597231, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Bin\net40\SunnyUI.Common.dll</HintPath>
<HintPath>..\packages\SunnyUI.Common.3.0.8\lib\net40\SunnyUI.Common.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />

View File

@ -22,7 +22,8 @@
* 2021-06-18: V3.0.4
* 2021-07-22: V3.0.5 Demo
* 2021-08-23: V3.0.6
* 2021-10-02: V3.0.8 Nan
* 2021-10-02: V3.0.8 Nan
* 2021-10-14: V3.0.8 线
******************************************************************************/
using System;
@ -455,7 +456,6 @@ namespace Sunny.UI
private void DrawPointSymbols(Graphics g)
{
int idx = 0;
foreach (var series in Option.Series.Values)
{
Color color = series.Color;
@ -528,8 +528,6 @@ namespace Sunny.UI
g.SetDefaultQuality();
}
idx++;
}
}

View File

@ -460,5 +460,15 @@ namespace Sunny.UI
return false;
}
public static void Disabled(this Control ctrl)
{
ctrl.Enabled = false;
ctrl.Hide();
}
public static void Invisible(this Control ctrl)
{
ctrl.Visible = false;
}
}
}

View File

@ -20,6 +20,7 @@
* 2020-04-19: V2.2.5
* 2021-08-07: V3.0.5
* 2021-08-14: V3.0.6
* 2021-10-14: V3.0.8 3
******************************************************************************/
using System;
@ -43,7 +44,7 @@ namespace Sunny.UI
public UIProcessBar()
{
SetStyleFlags(true, false);
MinimumSize = new Size(70, 5);
MinimumSize = new Size(70, 3);
Size = new Size(300, 29);
ShowText = false;