Community
Showing results for 
Search instead for 
Do you mean 
Reply

Overriding act's default copy behaviour.

Copper Contributor
Posts: 150
Country: Belgium

Overriding act's default copy behaviour.

[ Edited ]

Encountered a small problem when trying to copy stuff from a datagrid in one of my plugins.

Apparantly Sage Act by default puts a contact's details on the clipboard whenever you press CTRL+C on a contact record, except when you're in a textbox.

 

So instead of copying the contents of the selected cell, I get the following

Contact Fullname
Contact Title
Contact Company
Contact Phone
Contact Address1
Contact City Contact Postal Code
Contact Country
Contact E-mail

  on my clipboard.

 

So, question is: any way to override that behaviour?

Employee
Posts: 1,163
Country: USA

Re: Overriding act's default copy behaviour.

Did you happen to have scratchpad open at the time?

Matthew Wood
Act! SDK Support
Community Moderator
Copper Contributor
Posts: 150
Country: Belgium

Re: Overriding act's default copy behaviour.

Nope. We don't use scratchpad.

Employee
Posts: 1,163
Country: USA

Re: Overriding act's default copy behaviour.

You could register for the KeyDownEvent and if (e.Control && e.KeyCode == Keys.C) then you can clear the clipboard and replace it with whatever you'd prefer be there.

 

 

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 1
Country: USA

Re: Overriding act's default copy behaviour.

Has this been resolved? Any chance an example could be provided?