D5 help seems more complete:

procedure RegisterActions(const CategoryName: string; const AClasses: array
of TBasicActionClass; Resource: TComponentClass);

Description

RegisterActions enables a class to appear in the action list editor as a
selection when you choose New Action. At design-time the StdReg unit calls
RegisterActions. To install your own actions so that they can be used with
the action list editor, call RegisterActions to register them.

The CategoryName parameter specifies the value of the actions' Category
property. The AClasses parameter is an array of custom action class names.

The Resource parameter lets you assign default values to the properties of
the actions being registered. Resource is the class of a TDataModule
descendant that contains instances of the action classes listed by AClasses,
where the properties of those instances are set to the default values. This
parameter can be set to nil if there is no need to assign default values.
----- Original Message -----
From: Myles Penlington <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Tuesday, October 12, 1999 10:09 AM
Subject: [DUG]: Custom Actions.


> I am writing custom actions.
>
> Question:
> RegisterActions( 'Group', ActionClass, Resource)
>
> Anybody know what the Resource is? (It is not mention in the D4 help -
> actually the D4 help only thinks the call has the first two parameters).
>
> I can get them to work okay in the IDE.
>
> Myles
>
> Searching Delphi help files for help ..
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to