Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Where is my hot key?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Where is my hot key?

 Post Reply Post Reply
Author
Message
Knuth View Drop Down
Groupie
Groupie
Avatar

Joined: 01 March 2008
Location: China
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Knuth Quote  Post ReplyReply Direct Link To This Post Topic: Where is my hot key?
    Posted: 25 September 2008 at 5:21am
When I built my program with Codejock.It seemed that all main menu did not display the hot key that I typed in resource editor.The same problem was  happend in Codejock's samples,for example syntax edit sample\syntax editor.

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2008 at 9:00am
Hi;

Try

pCommandBars->GetShortcutManager()->UseSystemKeyNameText(TRUE);
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2008 at 2:49am
Hi,
 
Add line
pCommandBars->GetShortcutManager()->SetAccelerators(IDR_MAINFRAME);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Knuth View Drop Down
Groupie
Groupie
Avatar

Joined: 01 March 2008
Location: China
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Knuth Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2008 at 9:19pm
Thanks!
1. 
pCommandBars->GetShortcutManager()->UseSystemKeyNameText(TRUE);
I have tried it, but it still didn't display the hot key!

2.
pCommandBars->GetShortcutManager()->SetAccelerators(IDR_MAINFRAME);
It is cool, but some hot key still were not  displayed in my project.
Back to Top
Knuth View Drop Down
Groupie
Groupie
Avatar

Joined: 01 March 2008
Location: China
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Knuth Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2008 at 9:42pm
My project is a multiple document interface.There are two document type, so there are three main menu.I have tried to 'SetAccelerators' in every frame, but some hot key still were not displayed. Is there a way to display all the hot key as I typed in resource editor?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.027 seconds.