Print Page | Close Window

set accelerators

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4874
Printed Date: 18 July 2025 at 9:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: set accelerators
Posted By: bluesaphire
Subject: set accelerators
Date Posted: 24 August 2006 at 5:09am

hi,

i am setting the accelerators in my application using
 
pCommandBars->GetShortcutManager()->SetAccelerators(acceleratorID);
 
but how can i check at runtime whether the input shortcut key(given through keyboard by end user)is present in the accelerator table?
 
my requirement is something like first checking whether the key is present in the active accelerator table(say accelerator1),if not check in the second table(accelerator2) and take the action associated with it if any.



Replies:
Posted By: Oleg
Date Posted: 24 August 2006 at 8:53am
Hi,
Catch WM_COMMAND and check if HIWORD(wParam) == 0x1
 
if (message == WM_COMMAND && HIWORD(wParam) == 0x1)
{
...
}


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: bluesaphire
Date Posted: 24 August 2006 at 9:51am
 Thanks for the quick reciprocation Oleg
does codejock provide any functionality to check whether a particular accelerator is present in the accelerator table.(say ctrl+N is present in the table or not).
 
This would give the solution for the approach i have taken.


Posted By: Oleg
Date Posted: 24 August 2006 at 10:51am
Hi,
 
No, doesn't :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: bluesaphire
Date Posted: 25 August 2006 at 6:58am
hi,
 
what is the functionality associated with CompareAccelKey() method of the CXTPShortcutManager class.
i dont see any documentation nor find the usage of it in the samples.
 


Posted By: Oleg
Date Posted: 25 August 2006 at 7:53am
Hi,
It used internally only. Compre shortcut in string with pressed key.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: bluesaphire
Date Posted: 28 August 2006 at 1:19am
Thanks Oleg



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net