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

