Hi Rob,
You hit it oin the head! I hadn't set any shortcuts for the
EditDelete Standard Action, but Borland did and once I took it out the
delete key worked as it should, thanx for the tip!
from: Robert Meek at: [EMAIL PROTECTED]
dba "Tangentals Design" home of "PoBoy"
freeware Windows apps and utilities
located at: www.TangentalsDesign.com
Proud to be a moderotor for the
"Delphi Programming Lists" at: elists.org
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rob Kennedy
Sent: Thursday, September 08, 2005 12:54 PM
To: Borland's Delphi Discussion List
Subject: Re: TMemo TDBMemo and Delete key
On Wed, 7 Sep 2005, Robert Meek wrote:
> I finally solved my homemade toolbar's problem which prevented any
> standard actions like Copy and cut and paste, from working on Memo's by
> actually creating methods for each and then setting the focus back to the
> memo before and after the standard action code. But for some reason I'm
> still having problems with the keyboard's delete key.
> Although it now works on any selected text in the TMemo, it does not
> delete blank spaces or lines as in other editors. If anyone has a fix or
> workaround for this I would greatly appreciate it.
Have you assigned "Del" as the keyboard shortcut for your "Delete"
standard action? That's probably the problem. I think you can solve it by
removing that keyboard shortcut from the action.
If you have a menu item associated with the action, then to make the menu
display the keyboard shortcut, change the caption at run time like this:
DeleteMenu.Caption := 'Delete'#9'Del';
The tab character is what moves the shortcut text to the other side of the
menu item.
--
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi