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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emulate a CTRL+Key Combination

Status
Not open for further replies.

Maladon

Programmer
Oct 5, 2001
25
0
0
US
I have found that if I set my
MainMenu->EditMenu->Cut1->Shortcut property to CTRL+X it will actually disable the windows default behavior when I
attempt to use the menu item. Instead the menu item
calls the OnClick event. This would be OK if I
could use ClipBoard to copy and paste but I can't.
The reason is that there is no way to cut/copy a partial
cell in TDBGrid. ( No SelText() ) Cut/Copy/Paste
will work fine if the Menu does not have shortcuts
defined but will not work when they are set.

So: I need to emulate the <CTRL>+<X>, <CTRL>+<C>, and <CTRL>+<V> in the OnClick event. Does anyone know how
I can do this? OR, is there some other way to correct
this behavior?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top