[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Action Lists

How can I add may own Action List to the Standard Actions Property Editor? I have written the components but I can't get them into the Action List Editor.
0
CalvinDay
Asked:
CalvinDay
  • 3
  • 3
  • 3
  • +2
1 Solution
 
rwilson032697Commented:
Listening...
0
 
pablocastaCommented:
I don't quite get what you mean, explain a little bit more...

Paul
0
 
LischkeCommented:
Hi Calvin,

Use RegisterActions (ActnList.pas) to register your own actions with the action editor.

Ciao, Mike
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
CalvinDayAuthor Commented:
Thanks Lischke,

I have tried to do that with the following in the component's unit, but it doesn't seem to work:

implementation

procedure Register;
begin
  RegisterActions('Screen', [TModalScreen, TModelessScreen],nil);
end;

0
 
LischkeCommented:
This is strange... I just tried it myself to be sure and it work beautifully for me. I wrote:

type
  TMyAC = class(TCustomAction)
  end;


procedure Register;

begin
  RegisterActions('Mike', [TMyAC], nil);
end;

I recompiled the package where the unit is in and got the new action to pop up when opening the Action List Editor and inserting a new standard action (the dialog Standard Actions appeared).

Ciao, Mike
0
 
CalvinDayAuthor Commented:
I did the compile and did not do the install. Your last comment tipped me. Thanks
0
 
LischkeCommented:
Glad to help :-)

Ciao, Mike
0
 
topkapiCommented:
does anyone know how to define the images that goes with user defined actions?

like: cut, copy and paste have their own images.

i tried using a dcr, but that didn't work...
0
 
rwilson032697Commented:
Just set them using the ImageIndex and ImageList properties...

Cheers,

Raymond.
0
 
rwilson032697Commented:
Oh - you mean automatically, don't you :-(
0
 
topkapiCommented:
yep. maybe post a new question?
0
 
topkapiCommented:
done it.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now