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

General TRichView support forum. Please post your questions here
Post Reply
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

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

Post 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
shmp
Posts: 140
Joined: Sun Aug 28, 2005 10:19 am
Location: Sabah, Malaysia.
Contact:

Post by shmp »

No menu eh? Well try OnKeyUp to trap CtRL B, which should then apply the textstyle.

Hope this is helpful.
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post 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
Post Reply