[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Displays an error dialog for status result codes other than shrSuccess and shrCancel.
Source position: lazhelpintf.pas line 419
public procedure THelpDatabases.ShowError( |
ShowResult: TShowHelpResult; |
const ErrMsg: string |
); override; |
ShowResult |
|
Status result code examined in the method. |
ErrMsg |
|
Message displayed for the error condition. |
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.
|
Displays an error message using the help manager, or raises an exception. |
|
Version 4.0 | Generated 2025-05-03 | Home |