Example #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        /// ------------------------------------------------------------------------------------
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
            {
                base.OnMouseUp(e);
                return;
            }

            FwMainWnd mainWnd = TheMainWnd as FwMainWnd;

            if (mainWnd != null && mainWnd.TMAdapter != null)
            {
                EditingHelper.ShowContextMenu(e.Location, mainWnd.TMAdapter, this,
                                              "cmnuFootnoteView", "cmnuAddToDictFV", "cmnuChangeMultiOccurencesFV", "cmnuAddToDictFV",
                                              ((FootnoteEditingHelper)EditingHelper).ShowSpellingErrors);
            }
        }