* UIDoubleUpDown, UIIntegerUpDown:将双击编辑更改为单机编辑并选中

This commit is contained in:
Sunny 2021-05-19 10:37:15 +08:00
parent d2f6e31b1d
commit adb456db32
8 changed files with 8 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -243,8 +243,10 @@ namespace Sunny.UI
edit.TextAlign = HorizontalAlignment.Center;
edit.Text = pnlValue.Text;
edit.DecLength = Decimal;
edit.Visible = true;
edit.BringToFront();
edit.Visible = true;
edit.Focus();
edit.SelectAll();
}
}
}

View File

@ -82,7 +82,7 @@
this.pnlValue.Size = new System.Drawing.Size(58, 29);
this.pnlValue.TabIndex = 2;
this.pnlValue.Text = "0";
this.pnlValue.DoubleClick += new System.EventHandler(this.pnlValue_DoubleClick);
this.pnlValue.Click += new System.EventHandler(this.pnlValue_DoubleClick);
//
// UIDoubleUpDown
//

View File

@ -236,8 +236,10 @@ namespace Sunny.UI
pnlValue.FillColor = Color.White;
edit.TextAlign = HorizontalAlignment.Center;
edit.Text = pnlValue.Text;
edit.Visible = true;
edit.BringToFront();
edit.Visible = true;
edit.Focus();
edit.SelectAll();
}
}
}

View File

@ -82,7 +82,7 @@
this.pnlValue.Size = new System.Drawing.Size(58, 29);
this.pnlValue.TabIndex = 2;
this.pnlValue.Text = "0";
this.pnlValue.DoubleClick += new System.EventHandler(this.pnlValue_DoubleClick);
this.pnlValue.Click += new System.EventHandler(this.pnlValue_DoubleClick);
//
// UIIntegerUpDown
//