Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » PropertyGrid Cut & Paste Collapse All
Subject Author Date
Michael Valentine Nov 22, 2005 - 4:23 AM

Hi,


I am trying to get ctrl-c and ctrl-v working to allow me to cut and paste data between grid cells. The popup menu with the cut and paste options works correctly, however the shortcut keys (ctrl-c and ctrl-v) do not. They seem to work ok on the Prof-UIS PropertyGrid sample and I am not sure what I need to do my app to make them work.


I suspect that my main menu accelerators for ctrl-c and ctrl-v are interfering with the commands before the property grid gets a chance to get the messages. Ideally, what I would like would be for the copy and paste options on my main menu to be enabled/disabled depending on if the current cell data can be copied and/or pasted. Is this possible to do, maybe on an ON_UPDATE_COMMAND_UI message?


My property grid is located on a CExtCommandBar, which is attached to the CMainFrame. I have tried overriding the OnCmdMsg function in my command bar dialog to route the message ID_EDIT_COPY to the property grid but I just cannot get it to work correctly.


Any suggestions would be much appreciated!


Thanks

Technical Support Nov 23, 2005 - 12:09 PM

Could you send us a project that reproduces the problem?