the editor-specific Commands are not yet initialized during constructor time
This commit is contained in:
parent
35cdeb6860
commit
82e9b06f32
@ -61,8 +61,6 @@ namespace UniversalEditor.Editors.Multimedia.Audio.Synthesized.Views.PianoRoll
|
||||
txt.KeyDown += txt_KeyDown;
|
||||
Controls.Add(txt, new AbsoluteLayout.Constraints(0, 0, 128, 18));
|
||||
|
||||
this.ContextMenuCommandID = "PianoRollEditor_ContextMenu";
|
||||
|
||||
dm = new DragManager();
|
||||
dm.BeforeControlPaint += Dm_BeforeControlPaint;
|
||||
dm.DragStarting += Dm_DragStarting;
|
||||
@ -350,6 +348,8 @@ namespace UniversalEditor.Editors.Multimedia.Audio.Synthesized.Views.PianoRoll
|
||||
{
|
||||
base.OnBeforeContextMenu(e);
|
||||
|
||||
this.ContextMenuCommandID = "PianoRollEditor_ContextMenu";
|
||||
|
||||
this.ContextMenu.Items["EditCut"].Visible = (SelectedCommands.Count > 0);
|
||||
this.ContextMenu.Items["EditCopy"].Visible = (SelectedCommands.Count > 0);
|
||||
this.ContextMenu.Items["EditDelete"].Visible = (SelectedCommands.Count > 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user