Unit
pmActions (add U for Unicode version)
Description
Unit pmActions implement special versions standard edit and search actions that can be used interchangeably with TMemo, TRichMemo, TPlusMemo and TPlusMemoU components. The name of these new standard actions is the same as the basic ones in Delphi, with prefix "pm" added in front of them (and suffix "U" for those from pmActionsU). This is the list of standard actions implemented in unit pmActions:
TpmEditCut
TpmEditCopy
TpmEditPaste
TpmEditSelectAll
TpmEditDelete
TpmEditUndo
TpmEditRedo (note: there is no basic standard action corresponding to this one)
TpmSearchFind
TpmSearchFindFirst
TpmSearchFindNext
TpmSearchReplace
Once unit pmActions is added to a design time package, those standard actions are available in TActionList and TActionManager components like all other basic standard actions that come with Delphi. Unit pmActions is already contained in PlusMemo packages from Electro-Concept Mauricie.
Converting from basic standard actions to PlusMemo Standard Actions
If your application already contains basic standard edit/search actions and you want to replace them with those from pmActions with minimal efforts, you can use one of tow techniques:
1- Use a proxy class definition: in your form source code file, add the following type declaration before the form class declaration:
unit ActionDemoForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
pmActions, ...
type
{ Add the following declarations just before your form declaration}
TEditCut = class(TpmEditCut);
TEditCopy = class(TpmEditCopy);
TEditPaste = class(TpmEditPaste);
...
{ add more as you need }
TForm1 = class(TForm)
...
With these declarations, at run time the actions declared in TForm1 will be those from pmActions instead of the basic Delphi ones, even though at design time you use conventional TEditCut, TEditCopy, ....
2- Edit the form definition file (*.dfm) in text mode: open your .dfm file in a text editor and replace all occurences of TEditCut with TpmEditCut, TEditCopy with TpmEditCopy, and so on.