mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-18 22:38:38 +00:00
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:
parent
460062a07c
commit
a8f967e935
2 changed files with 7 additions and 1 deletions
|
@ -463,6 +463,7 @@ namespace PKHeX.WinForms
|
||||||
LoadRecordID(index);
|
LoadRecordID(index);
|
||||||
NUD_FameH.Visible = NUD_FameS.Visible = NUD_FameM.Visible = index == 1;
|
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;
|
CB_Record.SelectedIndex = 0;
|
||||||
LoadRecordID(0);
|
LoadRecordID(0);
|
||||||
NUD_RecordValue.ValueChanged += (s, e) =>
|
NUD_RecordValue.ValueChanged += (s, e) =>
|
||||||
|
|
|
@ -8,7 +8,12 @@ namespace PKHeX.WinForms.Subforms.Save_Editors
|
||||||
{
|
{
|
||||||
public partial class TrainerStat : UserControl
|
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 bool Editing;
|
||||||
private ITrainerStatRecord SAV;
|
private ITrainerStatRecord SAV;
|
||||||
private Dictionary<int, string> RecordList; // index, description
|
private Dictionary<int, string> RecordList; // index, description
|
||||||
|
|
Loading…
Add table
Reference in a new issue