mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-15 05:42:37 +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;
|
||||
var Picture: TPicture);
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
function GetURL: string;
|
||||
procedure SetURL(const AValue: string);
|
||||
property Provider: TAbstractIDEHTMLProvider read FProvider write SetProvider;
|
||||
@ -127,6 +128,14 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
constructor TIPLazHtmlControl.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
DefaultFontSize := 8;
|
||||
MarginHeight := 0;
|
||||
MarginWidth := 0;
|
||||
end;
|
||||
|
||||
function TIPLazHtmlControl.GetURL: string;
|
||||
begin
|
||||
Result:=FURL;
|
||||
|
17
ide/main.pp
17
ide/main.pp
@ -1415,12 +1415,17 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
OIHelpProvider.BaseURL := BaseURL;
|
||||
Stream := TStringStream.Create(HtmlHint);
|
||||
try
|
||||
OIHelpProvider.ControlIntf.SetHTMLContent(Stream);
|
||||
finally
|
||||
Stream.Free;
|
||||
if OI.InfoPanel.ControlCount > 0 then
|
||||
OI.InfoPanel.Controls[0].Visible := HtmlHint <> '';
|
||||
if HtmlHint <> '' then
|
||||
begin
|
||||
OIHelpProvider.BaseURL := BaseURL;
|
||||
Stream := TStringStream.Create(HtmlHint);
|
||||
try
|
||||
OIHelpProvider.ControlIntf.SetHTMLContent(Stream);
|
||||
finally
|
||||
Stream.Free;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -3749,7 +3749,7 @@ begin
|
||||
FShowFavorites := False;
|
||||
FShowRestricted := False;
|
||||
FShowStatusBar := True;
|
||||
FInfoBoxHeight := 50;
|
||||
FInfoBoxHeight := 80;
|
||||
FShowInfoBox := False;
|
||||
|
||||
Caption := oisObjectInspector;
|
||||
|
Loading…
Reference in New Issue
Block a user