I've figured out why your demo Actions project Bold/Ctrl-B shortcut works without popping up the popup menu - it has the same shortcut listed on the regular menu.
My editor doesn't have a 'main menu' at all - only buttons and the popup menu.
Any suggestions on how to get the shortcut 'loaded' without having to manually right-click the rve to popup the RVAPopup once?
Thanks,
Dick
Best way to 'enable' the Bold/Ctrl-B shortcut
-
- Posts: 148
- Joined: Wed Dec 07, 2005 2:02 pm
- Contact:
-
- Posts: 148
- Joined: Wed Dec 07, 2005 2:02 pm
- Contact:
Thanks for the suggestion!
Actually, I was looking for a way to 'fool' the app into thinking that the RVAPopup had already been popped up - i.e. something that will cleanly run the code in
procedure TRVAPopupMenuHelper.PreparePopup(X, Y: Integer);
where I've added
//------------My Mods
AddAction(TrvActionFontBold);
AddAction(TrvActionFontItalic);
AddAction(TrvActionFontUnderline);
AddAction(nil);
//-----------End My Mods
But without actually displaying the RVAPopup
Actually, I was looking for a way to 'fool' the app into thinking that the RVAPopup had already been popped up - i.e. something that will cleanly run the code in
procedure TRVAPopupMenuHelper.PreparePopup(X, Y: Integer);
where I've added
//------------My Mods
AddAction(TrvActionFontBold);
AddAction(TrvActionFontItalic);
AddAction(TrvActionFontUnderline);
AddAction(nil);
//-----------End My Mods
But without actually displaying the RVAPopup