开发者

Adding new standard actions

开发者 https://www.devze.com 2023-03-09 02:33 出处:网络
I have compiled a vcl package, a collection of components which registered several actions in delphi 2009. Now, starting from these actions, i have created others

I have compiled a vcl package, a collection of components which registered several actions in delphi 2009. Now, starting from these actions, i have created others but, even if I register it, I cannot see the开发者_运维技巧m in Action Edit Dialog. How I can add them?


How did you register them?

This should work:

unit MyPackageReg;

interface

uses
  ActnList, MyActionUnit;

procedure Register;

implementation

procedure Register;
begin
  RegisterActions('Category', [TMyActionType], nil);
end;

end.

Note the capital R in both Register declarations.

Now compile that package and install it.

0

精彩评论

暂无评论...
验证码 换一张
取 消