IDE/Help: Add a handler for the help button click event in TBaseHelpManager

This commit is contained in:
n7800 2025-06-22 15:55:13 +05:00 committed by Maxim Ganetsky
parent c604946f42
commit 3265bd28bd

View File

@ -96,6 +96,7 @@ type
procedure ShowHelpForMessage; virtual; abstract;
procedure ShowHelpForObjectInspector(Sender: TObject); virtual; abstract;
procedure ShowHelpForIDEControl(Sender: TControl); virtual; abstract;
procedure HelpButtonClick(Sender: TObject);
function GetHintForSourcePosition(const ExpandedFilename: string;
const CodePos: TPoint; out BaseURL, HTMLHint: string;
Flags: TIDEHelpManagerCreateHintFlags = []): TShowHelpResult; virtual; abstract;
@ -286,6 +287,12 @@ end;
{ TBaseHelpManager }
procedure TBaseHelpManager.HelpButtonClick(Sender: TObject);
begin
if Sender is TControl then
ShowHelpForIDEControl(TControl(Sender));
end;
procedure TBaseHelpManager.RegisterFPDocEditorTextButton(const aCaption, aHint: string;
const OnExecute: TFPDocEditorTxtBtnClick);
var