* UIDoubleUpDown, UIIntegerUpDown:将双击编辑更改为单机编辑并选中
This commit is contained in:
parent
d2f6e31b1d
commit
adb456db32
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -243,8 +243,10 @@ namespace Sunny.UI
|
|||||||
edit.TextAlign = HorizontalAlignment.Center;
|
edit.TextAlign = HorizontalAlignment.Center;
|
||||||
edit.Text = pnlValue.Text;
|
edit.Text = pnlValue.Text;
|
||||||
edit.DecLength = Decimal;
|
edit.DecLength = Decimal;
|
||||||
edit.Visible = true;
|
|
||||||
edit.BringToFront();
|
edit.BringToFront();
|
||||||
|
edit.Visible = true;
|
||||||
|
edit.Focus();
|
||||||
|
edit.SelectAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
2
SunnyUI/Controls/UIDoubleUpDown.designer.cs
generated
2
SunnyUI/Controls/UIDoubleUpDown.designer.cs
generated
@ -82,7 +82,7 @@
|
|||||||
this.pnlValue.Size = new System.Drawing.Size(58, 29);
|
this.pnlValue.Size = new System.Drawing.Size(58, 29);
|
||||||
this.pnlValue.TabIndex = 2;
|
this.pnlValue.TabIndex = 2;
|
||||||
this.pnlValue.Text = "0";
|
this.pnlValue.Text = "0";
|
||||||
this.pnlValue.DoubleClick += new System.EventHandler(this.pnlValue_DoubleClick);
|
this.pnlValue.Click += new System.EventHandler(this.pnlValue_DoubleClick);
|
||||||
//
|
//
|
||||||
// UIDoubleUpDown
|
// UIDoubleUpDown
|
||||||
//
|
//
|
||||||
|
@ -236,8 +236,10 @@ namespace Sunny.UI
|
|||||||
pnlValue.FillColor = Color.White;
|
pnlValue.FillColor = Color.White;
|
||||||
edit.TextAlign = HorizontalAlignment.Center;
|
edit.TextAlign = HorizontalAlignment.Center;
|
||||||
edit.Text = pnlValue.Text;
|
edit.Text = pnlValue.Text;
|
||||||
edit.Visible = true;
|
|
||||||
edit.BringToFront();
|
edit.BringToFront();
|
||||||
|
edit.Visible = true;
|
||||||
|
edit.Focus();
|
||||||
|
edit.SelectAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
2
SunnyUI/Controls/UIIntegerUpDown.designer.cs
generated
2
SunnyUI/Controls/UIIntegerUpDown.designer.cs
generated
@ -82,7 +82,7 @@
|
|||||||
this.pnlValue.Size = new System.Drawing.Size(58, 29);
|
this.pnlValue.Size = new System.Drawing.Size(58, 29);
|
||||||
this.pnlValue.TabIndex = 2;
|
this.pnlValue.TabIndex = 2;
|
||||||
this.pnlValue.Text = "0";
|
this.pnlValue.Text = "0";
|
||||||
this.pnlValue.DoubleClick += new System.EventHandler(this.pnlValue_DoubleClick);
|
this.pnlValue.Click += new System.EventHandler(this.pnlValue_DoubleClick);
|
||||||
//
|
//
|
||||||
// UIIntegerUpDown
|
// UIIntegerUpDown
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user