[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Sets the value for the Action property.
Source position: menus.pp line 240
protected procedure TMenuItem.SetAction( |
NewAction: TBasicAction |
); |
NewAction |
|
New value for the Action property. |
SetAction ensures that the ActionLink property is updated when the new property value is applied to the control.
When NewAction contains Nil, the class instance in ActionLink is freed and Nil'd.
Otherwise, GetActionLinkClass is called to create a new action link class instance for the ActionLink member. Its Action property is set to the value in NewAction, and its OnChange event handler is set to the DoActionChange method. ActionChange is called to synchronize property values in the class instance to the values in the Action.
|
Action is the default action associated with the menu item. |
|
|
Contains the link to the Action for the menu item. |
|
|
Changes the action for the menu item using the value specified in Sender. |
|
|
Gets the class reference used to create an action link for the class. |
Version 3.2 | Generated 2024-02-25 | Home |