[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazHelpIntf' (#lcl)

THelpDatabases.ShowError

Displays an error dialog for status result codes other than shrSuccess and shrCancel.

Declaration

Source position: lazhelpintf.pas line 419

public procedure THelpDatabases.ShowError(

  ShowResult: TShowHelpResult;

  const ErrMsg: string

); override;

Arguments

ShowResult

  

Status result code examined in the method.

ErrMsg

  

Message displayed for the error condition.

Description

ShowError calls the MessageDlg routine to display an error dialog for status result codes other than shrSuccess and shrCancel. ShowError uses the value in ShowResult to determine the caption displayed on the message dialog, including:

Status code Caption for the Dialog
shrNone rsHelpError
shrDatabaseNotFound rsHelpDatabaseNotFound
shrContextNotFound rsHelpContextNotFound
shrViewerNotFound rsHelpViewerNotFound
shrHelpNotFound rsHelpNotFound
shrViewerError rsHelpViewerError
shrSelectorError rsHelpSelectorError
Default for status codes other than shrSuccess and shrCancel rsUnknownErrorPleaseReportThisBug

A message dialog is not displayed when ShowResult contains the value shrSuccess or shrCancel.

ShowError is used in the implementation of the THelpDatabase.ShowError method.

See also

THelpDatabase.ShowError

  

Displays an error message using the help manager, or raises an exception.

TShowHelpResult


Version 4.0 Generated 2025-05-03 Home