Vcl.DBCtrls.TCustomDBLookupComboBox.UpdateAction
Delphi
function UpdateAction(Action: TBasicAction): Boolean; override;
C++
virtual bool __fastcall UpdateAction(System::Classes::TBasicAction* Action);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TCustomDBLookupComboBox |
Description
Updates an action to reflect the current state of the TDBLookupControl.
Vcl.DBCtrls.TCustomDBLookupComboBox.UpdateAction inherits from Vcl.DBCtrls.TDBLookupControl.UpdateAction. All content below this line refers to Vcl.DBCtrls.TDBLookupControl.UpdateAction.
Updates an action to reflect the current state of the TDBLookupControl.
UpdateAction is called automatically when the application is idle to give the TDBLookupControl an opportunity to update associated actions. This allows actions to be grayed, checked, or to otherwise reflect the status of the TDBLookupControl they target.
The Action
parameter specifies the action component that should be updated. UpdateAction returns True if the action component now reflects the state of the component, and False if it did not know how to update the action.