ide: minor improvements in showing help in the info box

git-svn-id: trunk@17488 -
This commit is contained in:
paul 2008-11-21 08:18:39 +00:00
parent c9435b41c0
commit 25daa2e783
3 changed files with 21 additions and 7 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;