Update - cCJAction

Is called to Update the state (enabled, checked, visible) of an action.

Type: Procedure

Parameters: None

Syntax
Procedure Update 

Call: Send Update


Description

Update is called to update an action's state (enabled, checked and visible states). It is called before a popup menu is popped up. If the item is an "active" item (pbActiveUpdate is true) it is called as part of the idle timer update mechanism (see cCJCommandBarSystem's Update method). Update is also called after an item is executed (see Execute and OnExecute). Update's purpose is to make sure that an action's enabled, visible and checked states are correct.

Update relies on the functions IsEnabled, IsChecked and IsVisible, which it uses to set the properties pbEnabled, pbChecked and pbVisible.

Update does the following:

1. It sets pbEnabled, pbChecked and pbVisible by calling IsEnabled, IsChecked and IsVisible

2. It calls OnUpdate

You will rarely augment this method. You will usually not need to send it because it should be getting called at the right time. You can send this message to an action to force an update.