> disabling the popup menu, will also disable other commands on it and it is > hard
In your case you need to replace the default pop-up menu with your own pop-up menu. Just mane your menu to look like the default one, except the Copy command. You can do it in about 120 seconds :) I use this method for years, and it works without problems. Peter Laman wrote: > Most of this won't work, or will have undesired side effects: > - disabling the memo will also prevent users from scrolling the memo. > - disabling the popup menu, will also disable other commands on it and it is > hard, since it is not easily accessible at the Delphi level (it's not the > same menu the PopupMenu property exposes). > - Clearing the clipboard is not what was asked for. > > Overriding the message handlers for WM_CUT and WM_COPY, or the WndProc > method is the most reliable, least tricky and easiest way, I'd say. > > Peter > __________________________________________________ > Delphi-Talk mailing list -> [email protected] > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk > > __________________________________________________ Delphi-Talk mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk
