+ UIMenuButton: 增加下拉菜单按钮
This commit is contained in:
parent
5d9e0a6f53
commit
b01e4e14e1
@ -35,7 +35,10 @@ namespace Sunny.UI
|
||||
protected override void OnMouseClick(MouseEventArgs e)
|
||||
{
|
||||
base.OnMouseClick(e);
|
||||
Menu?.Show(this, 0, Height);
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
Menu?.Show(this, 0, Height);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user