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.
LVL 2
CalvinDayAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.