Jump to content
Registration disabled at the moment Read more... ×
Ian Branch

Connecting Actions query..

Recommended Posts

Hi Team,

Based on Ray Koonopka's presentation in the 2023 Delphi Con, I thought I would have a look at Actions via an ActionList..

All seems fine with one exception..

When I connect an Action to a Button, the Actions 'OnExecute' event gets inserted into the button's 'OnClick' event.

Is this normal/correct?

Is it OK to leave there?

 

Regards & TIA,

Ian

Share this post


Link to post
30 minutes ago, Ian Branch said:

When I connect an Action to a Button, the Actions 'OnExecute' event gets inserted into the button's 'OnClick' event.

Is this normal/correct?

Is it OK to leave there?

Yes

Share this post


Link to post

That's the basic idea: You implement the code in the Actions OnExecute event instead of the Buttons OnClick event. That allows to use the same code for multiple controls (f.i. Buttons) spread over different forms or frames.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×