Vcl.WinHelpViewer.IWinHelpTester.CanShowALink

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function CanShowALink(const ALink, FileName: String): Boolean;

C++

virtual bool __fastcall CanShowALink(const System::UnicodeString ALink, const System::UnicodeString FileName) = 0 ;

Propriétés

Type Visibilité  Source Unité  Parent
function public
Vcl.WinHelpViewer.pas
Vcl.WinHelpViewer.hpp
Vcl.WinHelpViewer IWinHelpTester


Description

Interroge si le système d'aide peut afficher la rubrique d'aide, qui est spécifiée par le nom ALink et située dans le fichier d'aide spécifié.

CanShowALink renvoie True si le système d'aide peut afficher la rubrique d'aide, qui est spécifiée par le nom du lien associatif ALink et située dans le fichier d'aide FileName spécifié. Sinon, CanShowALink renvoie False.

La classe TWinHelpViewer, implémentée dans la section implementation de l'unité Vcl.WinHelpViewer, utilise CanShowALink dans la fonction TWinHelpViewer.UnderstandsKeyword. TWinHelpViewer.UnderstandsKeyword implémente la fonction System.HelpIntfs.ICustomHelpViewer.UnderstandsKeyword lorsque vous spécifiez l'unité Vcl.WinHelpViewer dans la section uses de votre programme.

L'unité WinHelpViewer est obsolète. Utilisez à la place Vcl.HtmlHelpViewer.

L'unité WinHelpViewer implémente le wrapper pour la fonction API WinHelp de Windows. Microsoft a désapprouvé WinHelp.

Voir aussi