mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:29:38 +02:00
IDE/Options: Add action for "Help" button in "All Compiler Options" dialog. Issue #41662
This commit is contained in:
parent
49e340569c
commit
b963faf217
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CONFIG Name="IDE windows and dialogs" Path="IDE_Window:_" ChildCount="73">
|
||||
<CONFIG Name="IDE windows and dialogs" Path="IDE_Window:_" ChildCount="74">
|
||||
<Node1 Name="TObjectInspector" Path="Object_Inspector" HasHelp="True"/>
|
||||
<Node2 Name="TfrmCompilerOptions" Path="Compiler_Options" HasHelp="True" IsRoot="True" ChildCount="1">
|
||||
<Node1 Name="MainNotebook" ChildCount="7">
|
||||
@ -199,4 +199,5 @@
|
||||
<Node71 Name="TShowCompilerOptionsDlg" Path="Show_Compiler_Options" HasHelp="True" IsRoot="True"/>
|
||||
<Node72 Name="TBuildModesForm" Path="_Project_Options#Build_modes" HasHelp="True" IsRoot="True"/>
|
||||
<Node73 Name="TDefinesGuiForm" Path="_Compiler_Options#Custom_Options" HasHelp="True" IsRoot="True"/>
|
||||
<Node74 Name="TfrmAllCompilerOptions" Path="_Compiler_Options#Other" HasHelp="True" IsRoot="True"/>
|
||||
</CONFIG>
|
||||
|
@ -37,6 +37,7 @@ object frmAllCompilerOptions: TfrmAllCompilerOptions
|
||||
OKButton.DefaultCaption = True
|
||||
HelpButton.Name = 'HelpButton'
|
||||
HelpButton.DefaultCaption = True
|
||||
HelpButton.OnClick = HelpButtonClick
|
||||
CloseButton.Name = 'CloseButton'
|
||||
CloseButton.DefaultCaption = True
|
||||
CancelButton.Name = 'CancelButton'
|
||||
|
@ -34,7 +34,7 @@ uses
|
||||
// LazUtils
|
||||
LazUTF8, LazLoggerBase,
|
||||
// IdeIntf
|
||||
IDEImagesIntf, IDEWindowIntf,
|
||||
IDEImagesIntf, IDEWindowIntf, IDEHelpIntf,
|
||||
// IDE
|
||||
Compiler, LazarusIDEStrConsts;
|
||||
|
||||
@ -53,6 +53,7 @@ type
|
||||
txtErrorMsg: TStaticText;
|
||||
procedure btnResetOptionsFilterClick(Sender: TObject);
|
||||
procedure cbShowModifiedClick(Sender: TObject);
|
||||
procedure HelpButtonClick(Sender: TObject);
|
||||
procedure sbMouseWheel(Sender: TObject; {%H-}Shift: TShiftState;
|
||||
WheelDelta: Integer; {%H-}MousePos: TPoint; var Handled: Boolean);
|
||||
procedure edOptionsFilterChange(Sender: TObject);
|
||||
@ -146,6 +147,11 @@ begin
|
||||
IdleConnected := True;
|
||||
end;
|
||||
|
||||
procedure TfrmAllCompilerOptions.HelpButtonClick(Sender: TObject);
|
||||
begin
|
||||
LazarusHelp.ShowHelpForIDEControl(self);
|
||||
end;
|
||||
|
||||
procedure TfrmAllCompilerOptions.SetIdleConnected(AValue: Boolean);
|
||||
begin
|
||||
if csDestroying in ComponentState then
|
||||
|
Loading…
Reference in New Issue
Block a user