I have an editor form that has no "main menu" itself - only buttons and popup menus. I've modified RVAPopupMenuHelper.PreparePopup(X, Y: Integer) as follows:
-----------------
AddAction(TrvActionCut);
AddAction(TrvActionCopy);
AddAction(TrvActionPaste);
AddAction(nil);
//------------My Mods
AddAction(TrvActionFontBold);
AddAction(TrvActionFontItalic);
AddAction(TrvActionFontUnderline);
AddAction(nil);
//-----------End My Mods
AddAction(TrvActionFontEx);
AddAction(TrvActionParagraph);
AddAction(TrvActionParaList);
-----------------
My problem is that the shortcuts associated with FontBold, FontItalic and Font Underline (Ctrl-B, Ctrl-I and Ctrl-U) do not work until I display the popup the first time. After that they work properly.
How can I get these shortcuts to work without having to first display the popup menu?
How to enable action shortcut
-
- Posts: 148
- Joined: Wed Dec 07, 2005 2:02 pm
- Contact:
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 148
- Joined: Wed Dec 07, 2005 2:02 pm
- Contact: