Add KeyPress handlers to comboBoxes and buttons

This change introduces KeyPress event handlers to various UI elements such as comboBoxes and buttons to improve key input handling. The corresponding event handlers were implemented and the UI components were updated accordingly.
This commit is contained in:
2024-09-04 14:02:21 +02:00
parent 77d8c95930
commit f50f9bfa5b
4 changed files with 2389 additions and 1724 deletions
+2 -2
View File
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.9.2142.11")]
[assembly: AssemblyFileVersion("3.9.2142.11")]
[assembly: AssemblyVersion("3.9.2142.13")]
[assembly: AssemblyFileVersion("3.9.2142.13")]
File diff suppressed because it is too large Load Diff
@@ -257,6 +257,7 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
this.buttonChooseBox.Name = "buttonChooseBox";
this.buttonChooseBox.UseVisualStyleBackColor = true;
this.buttonChooseBox.Click += new System.EventHandler(this.buttonChooseBox_Click);
this.buttonChooseBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.buttonChooseBox_KeyPress);
//
// purchaseBoxComboBox
//
@@ -264,6 +265,7 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
resources.ApplyResources(this.purchaseBoxComboBox, "purchaseBoxComboBox");
this.purchaseBoxComboBox.Name = "purchaseBoxComboBox";
this.purchaseBoxComboBox.SelectedIndexChanged += new System.EventHandler(this.purchaseBoxComboBox_SelectedIndexChanged);
this.purchaseBoxComboBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.purchaseBoxComboBox_KeyPress);
//
// orderComboBox
//
@@ -271,6 +273,7 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
resources.ApplyResources(this.orderComboBox, "orderComboBox");
this.orderComboBox.Name = "orderComboBox";
this.orderComboBox.SelectedIndexChanged += new System.EventHandler(this.orderComboBox_SelectedIndexChanged);
this.orderComboBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.orderComboBox_KeyPress);
//
// clearButton
//
@@ -1248,6 +1251,7 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
this.comboBoxN1.SelectionChangeCommitted += new System.EventHandler(this.comboBoxN1_SelectionChangeCommitted);
this.comboBoxN1.TextUpdate += new System.EventHandler(this.comboBoxN1_TextUpdate);
this.comboBoxN1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.comboBoxN1_KeyDown);
this.comboBoxN1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.comboBoxN1_KeyPress);
this.comboBoxN1.Leave += new System.EventHandler(this.comboBoxN1_Leave);
//
// comboBoxN2
@@ -687,7 +687,9 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
///
void UpdateExclamation(int uiCtrlPos) /// uiCtrlPos = 0 .. TextBoxesCount-1
{
if ((mode == Tst.End) || (mode == Tst.Both))
exclamations[uiCtrlPos].Visible = false;
/*if ((mode == Tst.End) || (mode == Tst.Both))
{
try
{
@@ -712,7 +714,7 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
exclamations[uiCtrlPos].Visible = false;
log.Debug("DataEntry - Update unit - Error uiCtrlPos: " + uiCtrlPos);
}
}
}*/
}