Thanks for the follow-up. You may want to update your Help file to indicate that the property is obsolete.
I guess you can consider this a feature request. Here's the problem...
I have an MDI application where the MDI Child is basically an editor. I also have various docking panes that include textboxes and property grids. The TextBoxes have built-in support for handling the clipboard shortcuts Ctrl+X, Ctrl+C, & Ctrl+V. The Property grid also has built-in support for these command when editing an item.
The 'Edit' menu for my application primarily controls the editor in the MDI Child window. If I want "Ctrl+X" to appear next to the "Cut" command, you're saying I have to bind that key combination to the Cut command. The problem is that "Ctrl+X" is now ALWAYS associated with that menu item. If I type "Ctrl+X" in my textbox or the property grid, it doesn't accept it. Instead, it sends the command to my editor (due to the key binding).
The Office 2003 Sample application illustrates this problem. In the search pane, there is a TextBox used at the bottom of the pane. Type any value in this box and then highlight the entire word. Right-click and select 'Cut' from the popup menu. Now (with focus still in the search box), type "Ctrl+V". This SHOULD paste the value you just cut back into the textbox. Instead, it pastes the value into the Editor because "Ctrl+V" is bound to the command that pastes in the editor. The RTF Control used as the editor and the TextBox used for search already recognize these commands, so the key bindings are unnecessary. Having this text in the menu, however, helps reinforce to the user what the shortcut keys are and be consistent with other controls that might be displaying Shortcut Text due to KeyBindings.
If you look at the following post by 'elias', you'll see that I'm not the only one who would like to see some flexibility here:
https://forum.codejock.com/forum_posts.asp?TID=686&PN=1 - https://forum.codejock.com/forum_posts.asp?TID=686&P N=1
I hope you will consider some alternatives.
As part of this feature request, it would be nice if the programmer could reserve certain shortcut keys from being defined by the user as a key binding when customizing a toolbar. This would allow the programmer to prevent the user from assigning "Ctrl+C" to some random command when it could be reserved for the "Copy" command. Along the same line of thinking, it would be nice to prevent the user from assigning any key binding to a particular control.
In other words, here's a summary of my request:
- Let me specify that "Ctrl+C" is the text that should appear next to the ID_EDIT_COPY command when displayed in a menu without using KeyBindings
- Let me prevent the user from assigning "Ctrl+C" as a key binding when customizing a CommandBar.
- Let me prevent the user from assigning any other key binding to the ID_EDIT_COPY command.
What are your thoughts, Oleg?
|