* UIScrollingText:增加属性可设置双击暂停滚动
This commit is contained in:
parent
2fcb9d1f9e
commit
084e44d691
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4
SunnyUI.Demo/Controls/FOther.Designer.cs
generated
4
SunnyUI.Demo/Controls/FOther.Designer.cs
generated
@ -177,7 +177,6 @@
|
||||
this.uiLedBulb4.BlinkInterval = 500;
|
||||
this.uiLedBulb4.Location = new System.Drawing.Point(507, 52);
|
||||
this.uiLedBulb4.Name = "uiLedBulb4";
|
||||
this.uiLedBulb4.On = false;
|
||||
this.uiLedBulb4.Size = new System.Drawing.Size(32, 32);
|
||||
this.uiLedBulb4.TabIndex = 41;
|
||||
this.uiLedBulb4.Text = "uiLedBulb4";
|
||||
@ -195,6 +194,7 @@
|
||||
//
|
||||
// uiScrollingText1
|
||||
//
|
||||
this.uiScrollingText1.ClickPause = true;
|
||||
this.uiScrollingText1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
|
||||
this.uiScrollingText1.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiScrollingText1.ForeColor = System.Drawing.Color.Red;
|
||||
@ -211,7 +211,7 @@
|
||||
// uiScrollingText2
|
||||
//
|
||||
this.uiScrollingText2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
|
||||
this.uiScrollingText2.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiScrollingText2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiScrollingText2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
|
||||
this.uiScrollingText2.Location = new System.Drawing.Point(381, 172);
|
||||
this.uiScrollingText2.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
|
@ -120,9 +120,6 @@
|
||||
<metadata name="uiToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>107, 17</value>
|
||||
</metadata>
|
||||
<metadata name="uiToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>107, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>35</value>
|
||||
</metadata>
|
||||
|
@ -48,6 +48,9 @@ namespace Sunny.UI
|
||||
timer.Start();
|
||||
}
|
||||
|
||||
[DefaultValue(false), Description("点击暂停滚动"), Category("SunnyUI")]
|
||||
public bool ClickPause { get; set; }
|
||||
|
||||
private void Reset()
|
||||
{
|
||||
XPos = int.MinValue;
|
||||
@ -116,7 +119,11 @@ namespace Sunny.UI
|
||||
|
||||
protected override void OnMouseDoubleClick(MouseEventArgs e)
|
||||
{
|
||||
timer.Enabled = !timer.Enabled;
|
||||
if (ClickPause)
|
||||
{
|
||||
timer.Enabled = !timer.Enabled;
|
||||
}
|
||||
|
||||
base.OnMouseDoubleClick(e);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user