RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IExtendedHelpViewer.UnderstandsContext Method

Queries the Help Viewer if it understands the given Context ID.

Pascal
function UnderstandsContext(const ContextID: Integer; const HelpFileName: string): Boolean;
C++
__fastcall Boolean UnderstandsContext(const int ContextID, const AnsiString HelpFileName);

UnderstandsContext should return true if the Viewer is able to display the topic identified by ContextID in the file HelpFileName. When the RTL Help System receives a Context-based Help request, it calls UnderstandsContext for each Viewer that implements it until the method returns true. (Viewers are polled in the order they were registered.) The Help System than calls that Viewer's DisplayHelpByContext method. 

 

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