Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Short cut keys apply when an edit field has focus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Short cut keys apply when an edit field has focus

 Post Reply Post Reply
Author
Message
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post Topic: Short cut keys apply when an edit field has focus
    Posted: 16 June 2006 at 1:19pm
I have mentioned this issue before when I first discovered it with the report control here.
 
However, I am now having the exact same issue but with a property grid. 
 
If you have a short cut key assigned to a command bar item this key can not be used when editing a property grid or report control.  This seems rediculous.  Our application (as do many others, eg. visual stuido) has many short keys that are needed for entering information when a property grid or report control cell is in edit mode.
 
This seems like a major flaw and makes using command bar short cuts virtually usless. Angry
 
Does anyone have a suggestion for a work-around?  Surely this must be an issue for other people.
Back to Top
markh View Drop Down
Groupie
Groupie


Joined: 12 November 2003
Location: United Kingdom
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote markh Quote  Post ReplyReply Direct Link To This Post Posted: 18 June 2006 at 2:14pm
I agree this is a major problem with shortcut keys. Basically it seems that any child, of the frame window that contains the CommandBars object, doesn't receive any WM_KEYDOWN messages if the key happens to be used as a shortcut in CommandBars. This occurs irrespective of the focus and is impossible to override. I am having the same problem with a RichEdit control hosted in a DockingWindow. All of the shortcuts for the RichEdit such as Ctrl-C for copy are routed to CommandBars rather than being received by the control itself.
 
There definitely needs to be some mechanism of allowing the focus window to handle the message first before it is passed to CommandBars. I would have thought this could be done by first allowing the focus window to handle the keydown message and only passing it to CommandBars if it is not handled.
 
Without this mechanism the shortcut key system is useless for many apps and indeed I have stopped using it.
 
Any ideas of a way round this problem would be greatly appreciated.
 
 
Back to Top
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2006 at 2:12pm
It's good to hear I'm not the only one with this problem, not so great to hear the only work-around suggested so far is not use accelleartor keys.
 
This is seems crazy.  Is anyone using the accellerator keys
Back to Top
vb1to6 View Drop Down
Newbie
Newbie


Joined: 23 November 2005
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote vb1to6 Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 11:45am

I use the WinHook control of the Desaware SpyWorks v7.1 to workaround the issue of turning off the Accelerator Keys of the CommandBar 9.81 and still getting the functionality I needed within complex VB 6.0 MDI applications.

I capture the accelerator keys on the MDI form and post them for the toolbar in code. I'm not saying it is not a drag to get around the "undocumented feature" of the CommandBar, however it beats the hell out of re-coding the entire project.

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: 03 August 2006 at 11:54am
Hi,
Actually... BeforeTranslate event of 10.3 release can help....
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.