Disallow scrolling in Trainer Stat/Record

Unfinished text edits aren't pushed until after the combobox changes index
#2820
can't tell the numericupdown to finalize entry, even with a Focus() call to the combobox (to change focus from the numericupdown).
This commit is contained in:
Kurt 2020-04-26 17:49:10 -07:00
parent 460062a07c
commit a8f967e935
2 changed files with 7 additions and 1 deletions

View file

@ -463,6 +463,7 @@ namespace PKHeX.WinForms
LoadRecordID(index);
NUD_FameH.Visible = NUD_FameS.Visible = NUD_FameM.Visible = index == 1;
};
CB_Record.MouseWheel += (s, e) => ((HandledMouseEventArgs)e).Handled = true; // disallowed
CB_Record.SelectedIndex = 0;
LoadRecordID(0);
NUD_RecordValue.ValueChanged += (s, e) =>

View file

@ -8,7 +8,12 @@ namespace PKHeX.WinForms.Subforms.Save_Editors
{
public partial class TrainerStat : UserControl
{
public TrainerStat() => InitializeComponent();
public TrainerStat()
{
InitializeComponent();
CB_Stats.MouseWheel += (s, e) => ((HandledMouseEventArgs)e).Handled = true; // disallowed
}
private bool Editing;
private ITrainerStatRecord SAV;
private Dictionary<int, string> RecordList; // index, description