Page 1 of 1

Best way to 'enable' the Bold/Ctrl-B shortcut

Posted: Wed Jun 27, 2007 2:16 am
by DickBryant
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

Posted: Wed Jun 27, 2007 3:24 am
by shmp
No menu eh? Well try OnKeyUp to trap CtRL B, which should then apply the textstyle.

Hope this is helpful.

Posted: Wed Jun 27, 2007 1:18 pm
by DickBryant
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