RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.UpdateVerbs Method

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

Pascal
procedure UpdateVerbs;
C++
__fastcall UpdateVerbs();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!