Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ctrl+C

Status
Not open for further replies.

Lfelipe

Programmer
Nov 6, 2002
3
BR
I want to get the functionality of the Ctrl+C combination keys (copy to clipboard) with other combination, for instance shift+d.
Does anybody know how to do it ? Does it relate to the Windows API ?


Thanks in advance
Luis Felipe
 
It is part of the Windows API. Look up CopyToClipboard. You will have to implement OnEditPaste as well. Look up the article "Clipboard: Copying and Pasting Data" on MSDN.
 
OK, if you mean do something like Ctrl+C from a RichEdit or something... Go to your components OnKeyUp event and put in this:

if (Shift.Contains(ssCtrl) && Key == 'U')
{
RichEdit1->CopyToClipboard();
} Cyprus
 
oops, that was supposed to be "&& Key == 'C'"

Sorry Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top