Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - No shortcut/keybindings when ID is too large
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No shortcut/keybindings when ID is too large

 Post Reply Post Reply
Author
Message
robbedaya View Drop Down
Newbie
Newbie


Joined: 31 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote robbedaya Quote  Post ReplyReply Direct Link To This Post Topic: No shortcut/keybindings when ID is too large
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
Back to Top
robbedaya View Drop Down
Newbie
Newbie


Joined: 31 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote robbedaya Quote  Post ReplyReply Direct Link To This Post 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.

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.217 seconds.