コード例 #1
0
        protected override void OnHandleCreated(EventArgs e)
        {
            base.OnHandleCreated(e);

            m_Customiser = new ContextMenuCustomiser(this);
            RebuildContextMenu();
        }
コード例 #2
0
 /// <summary>
 /// Creates a new context menu item with the given text. Inserted at the end.
 /// </summary>
 public ContextMenuItem(string text)
 {
     m_Text = text;
     m_Id   = ContextMenuCustomiser.GetNextId();
 }