Vcl.OleCtnrs.TOleContainer.UpdateVerbs

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UpdateVerbs;

C++

void __fastcall UpdateVerbs();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.OleCtnrs.pas
Vcl.OleCtnrs.hpp
Vcl.OleCtnrs TOleContainer

Description

Refreshes the list of verbs the OLE object can respond to.

TOleContainer automatically calls UpdateVerbs when the ObjectVerbs property is first read, but some OLE objects change their verbs when they perform some actions. The Media Clip OLE object, for example, changes its Play verb to Stop while running. Call UpdateVerbs to ensure that the list of verbs is appropriate to the state of the OLE object.

An OLE object must already be loaded in the container before calling UpdateVerbs. Otherwise, UpdateVerbs raises an exception.

See Also