Print Page | Close Window

No shortcut/keybindings when ID is too large

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9536
Printed Date: 17 June 2025 at 9:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: No shortcut/keybindings when ID is too large
Posted By: robbedaya
Subject: No shortcut/keybindings when ID is too large
Date Posted: 08 February 2008 at 10:10am

Dear,

In my firm, we use ranges of ID to identify ControlBarControls depending on which form they are used on.
 
For example:
 100 - 9999 = Menu items on form 1
 10000 - 99999 = Menu items on form 2
....
 200 000 - 300 000 = menu items on form X
 
When the id becomes too big, keybindings (CTRL+X, ...) that are added to those ID's do not work and the shortcut text is not displayed in the menu. Is there a way to work aroud that?
 
The menu items self are displayed correctly. Only the keybindings do not work.



Replies:
Posted By: Oleg
Date Posted: 08 February 2008 at 2:54pm
Sorry its system restiction :( TranslateAccelerator system method allows only Ids from 1 to 32000.

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


Posted By: robbedaya
Date Posted: 11 February 2008 at 2:21am

But the ID parameter is declared as a long.

32000 is (aproximatly) the maximum value of an integer. 2 147 483 647 should be the maximum value of a long.

It is possible to create menuitems with an ID larger than 32000, bit it's not possible tho add keybindings to that ID.




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