Registering and using TActionManager

Hi Wagner, thanks for response, I was looking for run-time code, not design-time.

But even something simpler might work.

In a form module with a button, I have:


var
  actProcessRaw: TAction;  

procedure ActProcessRawExecute(Sender:TObject);
begin
  ShowMessage('hello from process raw');
end;

begin               
   actProcessRaw:= TAction.Create(self);
   actProcessRaw.Caption := 'Click Me';
   actProcessRaw.OnExecute := ActProcessRawExecute; 
   button1.Action := actProcessRaw;        
 end;             



It won't allow the assignment of    actProcessRaw.OnExecute := ActProcessRawExecute;  - complaining that the subroutine is missing a parameter...

Is this sort of thing also not possible?

Thanks.

EdB