mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-08 03:05:58 +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;
|
||||||
|
@ -1415,6 +1415,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if OI.InfoPanel.ControlCount > 0 then
|
||||||
|
OI.InfoPanel.Controls[0].Visible := HtmlHint <> '';
|
||||||
|
if HtmlHint <> '' then
|
||||||
|
begin
|
||||||
OIHelpProvider.BaseURL := BaseURL;
|
OIHelpProvider.BaseURL := BaseURL;
|
||||||
Stream := TStringStream.Create(HtmlHint);
|
Stream := TStringStream.Create(HtmlHint);
|
||||||
try
|
try
|
||||||
@ -1423,6 +1427,7 @@ begin
|
|||||||
Stream.Free;
|
Stream.Free;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function TMainIDE.OIOnPropertyHint(Sender: TObject;
|
function TMainIDE.OIOnPropertyHint(Sender: TObject;
|
||||||
PointedRow: TOIPropertyGridRow; ScreenPos: TPoint; aHintWindow: THintWindow;
|
PointedRow: TOIPropertyGridRow; ScreenPos: TPoint; aHintWindow: THintWindow;
|
||||||
|
@ -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