CommandBars problem with Cut/Copy/Paste |
Post Reply |
Author | |
eliasp
Newbie Joined: 28 April 2004 Location: Greece Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 03 May 2004 at 4:38am |
I have noticed than CommandBars "steal" the accelarator keys from every other control. This causes problems considering the following scenario:
I have a form with two text boxes and a command bar that has Cut, Copy and Paste buttons with Shift+Del, Ctrl+Ins and Shift+Ins accelerator keys respectivelly.
The problem is that I have to explicitly write code in the CommandBars Execute event handler for handing individually Cut/Copy/Paste for both textboxes.
Now consider the scenario where I have an MDI form with several MDI-child forms and each one has several text boxes and property grids... Handling Cut/Copy/Paste there is a nightmare.
Default Windows Menu behavior "manifesto" seems to kind-of-bubble the WM_CUT/COPY/PASTE message to the appropriate control.
What is the proposed way of overcomming this problem ?
|
|
FRANCO
Newbie Joined: 02 July 2004 Location: Italy Status: Offline Points: 4 |
Post Options
Thanks(0)
|
I having the same troubles. I think that should be need to have such possibility to exclude such key combinations from commandbar.execute event, so that our program can take the control on these keys.
|
|
paulhaggo
Groupie Joined: 21 June 2018 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
i had the issue where i did not want the command bar to take control of the copy paste at all, which i fixed by using command bar editor and deleting all the Accelerators in the list (within designer), i assume this can be done via code also
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |