Print Page | Close Window

CommandBars problem with Cut/Copy/Paste

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=686
Printed Date: 27 April 2024 at 8:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars problem with Cut/Copy/Paste
Posted By: eliasp
Subject: CommandBars problem with Cut/Copy/Paste
Date 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 ?
 



Replies:
Posted By: FRANCO
Date Posted: 02 July 2004 at 3:03am

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.

 



Posted By: paulhaggo
Date Posted: 15 October 2018 at 8:12am
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



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