* UITextBox: 增加MouseClick,MouseDoubleClick事件
This commit is contained in:
parent
50f105c4b0
commit
0a6ef3e4b4
Binary file not shown.
@ -43,6 +43,7 @@
|
||||
* 2022-11-03: V3.2.6 增加了可设置垂直滚动条宽度的属性
|
||||
* 2022-11-12: V3.2.8 修改整数、浮点数大小离开判断为实时输入判断
|
||||
* 2022-11-12: V3.2.8 删除MaximumEnabled、MinimumEnabled、HasMaximum、HasMinimum属性
|
||||
* 2022-11-26: V3.2.9 增加MouseClick,MouseDoubleClick事件
|
||||
******************************************************************************/
|
||||
|
||||
using System;
|
||||
@ -100,6 +101,8 @@ namespace Sunny.UI
|
||||
edit.MouseUp += Edit_MouseUp;
|
||||
edit.MouseMove += Edit_MouseMove;
|
||||
edit.SelectionChanged += Edit_SelectionChanged;
|
||||
edit.MouseClick += Edit_MouseClick;
|
||||
edit.MouseDoubleClick += Edit_MouseDoubleClick;
|
||||
|
||||
btn.Parent = this;
|
||||
btn.Visible = false;
|
||||
@ -131,6 +134,19 @@ namespace Sunny.UI
|
||||
TextAlignmentChange += UITextBox_TextAlignmentChange;
|
||||
}
|
||||
|
||||
public new event EventHandler MouseDoubleClick;
|
||||
public new event EventHandler MouseClick;
|
||||
|
||||
private void Edit_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
MouseDoubleClick?.Invoke(this, e);
|
||||
}
|
||||
|
||||
private void Edit_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
MouseClick?.Invoke(this, e);
|
||||
}
|
||||
|
||||
private int scrollBarWidth = 0;
|
||||
|
||||
[DefaultValue(0), Category("SunnyUI"), Description("垂直滚动条宽度,最小为原生滚动条宽度")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user