improved UI and correctly set the default cursor while using DragManager

This commit is contained in:
Michael Becker 2021-03-23 14:56:56 -04:00
parent b06e3628f0
commit 6a3d019485
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -387,16 +387,19 @@ namespace UniversalEditor.Editors.Multimedia.Audio.Synthesized.Views.PianoRoll
case PianoRollViewSelectionMode.Insert:
{
Cursor = Cursors.Pencil;
dm.DefaultCursor = Cursors.Pencil;
break;
}
case PianoRollViewSelectionMode.Select:
{
Cursor = Cursors.Default;
dm.DefaultCursor = Cursors.Default;
break;
}
case PianoRollViewSelectionMode.Delete:
{
Cursor = Cursors.Eraser;
dm.DefaultCursor = Cursors.Eraser;
break;
}
}
@ -845,6 +848,9 @@ namespace UniversalEditor.Editors.Multimedia.Audio.Synthesized.Views.PianoRoll
})
})
});
dlg.Text = "Note Properties";
dlg.EnableProfiles = false;
if (dlg.ShowDialog(ParentWindow) == DialogResult.OK)
{
((Parent as PianoRollView).Parent as Editor).BeginEdit();