diff --git a/docs/xml/lcl/actnlist.xml b/docs/xml/lcl/actnlist.xml index a084787511..b2c181885b 100644 --- a/docs/xml/lcl/actnlist.xml +++ b/docs/xml/lcl/actnlist.xml @@ -1,4 +1,4 @@ - + - -

- OnExecute is the event triggered when the action is activated +

OnExecute is the event triggered when the action is activated (executed). The event is triggered e.g. when the user clicks e.g. on a menu item or a button associated to the action. The application programmer should provide a OnExecute event handler to execute whatever code is necessary when the button is pressed or the menu item is chosen. -

-

Note that assigning an OnExecute handler will result in the +

Note that assigning an OnExecute handler will result in the Execute method returning a True value. Predefined actions (such as dataset actions) will check the result of Execute and will not perform their normal task if the OnExecute handler was called. +

Since version 1.1 setting OnExecute no longer sets the owner's OnClick. You can now specify an event for the action and a more specific OnClick for control and both are called. OnClick is called before OnExecute.

+ Event called when action is executed