mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-15 19:02:39 +02:00
ide: minor improvements in showing help in the info box
git-svn-id: trunk@17488 -
This commit is contained in:
parent
c9435b41c0
commit
25daa2e783
@ -41,6 +41,7 @@ type
|
|||||||
procedure HTMLGetImageX(Sender: TIpHtmlNode; const URL: string;
|
procedure HTMLGetImageX(Sender: TIpHtmlNode; const URL: string;
|
||||||
var Picture: TPicture);
|
var Picture: TPicture);
|
||||||
public
|
public
|
||||||
|
constructor Create(AOwner: TComponent); override;
|
||||||
function GetURL: string;
|
function GetURL: string;
|
||||||
procedure SetURL(const AValue: string);
|
procedure SetURL(const AValue: string);
|
||||||
property Provider: TAbstractIDEHTMLProvider read FProvider write SetProvider;
|
property Provider: TAbstractIDEHTMLProvider read FProvider write SetProvider;
|
||||||
@ -127,6 +128,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
constructor TIPLazHtmlControl.Create(AOwner: TComponent);
|
||||||
|
begin
|
||||||
|
inherited Create(AOwner);
|
||||||
|
DefaultFontSize := 8;
|
||||||
|
MarginHeight := 0;
|
||||||
|
MarginWidth := 0;
|
||||||
|
end;
|
||||||
|
|
||||||
function TIPLazHtmlControl.GetURL: string;
|
function TIPLazHtmlControl.GetURL: string;
|
||||||
begin
|
begin
|
||||||
Result:=FURL;
|
Result:=FURL;
|
||||||
|
17
ide/main.pp
17
ide/main.pp
@ -1415,12 +1415,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
OIHelpProvider.BaseURL := BaseURL;
|
if OI.InfoPanel.ControlCount > 0 then
|
||||||
Stream := TStringStream.Create(HtmlHint);
|
OI.InfoPanel.Controls[0].Visible := HtmlHint <> '';
|
||||||
try
|
if HtmlHint <> '' then
|
||||||
OIHelpProvider.ControlIntf.SetHTMLContent(Stream);
|
begin
|
||||||
finally
|
OIHelpProvider.BaseURL := BaseURL;
|
||||||
Stream.Free;
|
Stream := TStringStream.Create(HtmlHint);
|
||||||
|
try
|
||||||
|
OIHelpProvider.ControlIntf.SetHTMLContent(Stream);
|
||||||
|
finally
|
||||||
|
Stream.Free;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -3749,7 +3749,7 @@ begin
|
|||||||
FShowFavorites := False;
|
FShowFavorites := False;
|
||||||
FShowRestricted := False;
|
FShowRestricted := False;
|
||||||
FShowStatusBar := True;
|
FShowStatusBar := True;
|
||||||
FInfoBoxHeight := 50;
|
FInfoBoxHeight := 80;
|
||||||
FShowInfoBox := False;
|
FShowInfoBox := False;
|
||||||
|
|
||||||
Caption := oisObjectInspector;
|
Caption := oisObjectInspector;
|
||||||
|
Loading…
Reference in New Issue
Block a user