Difference between revisions of "TIpHtmlPanel"
From Lazarus wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | The '''TIpHtmlPanel''' [[Image:tiphtmlpanel.png]] component is the display part of the Turbopower Internet Pro package that delivers native HTML-access. The component is available from the [[IPro tab]] of the [[Component Palette]]. | + | The '''TIpHtmlPanel''' [[Image:tiphtmlpanel.png]] component is the display part of the Turbopower Internet Pro package that delivers native |
+ | HTML-access. The component is available from the [[IPro tab]] of the [[Component Palette]]. | ||
+ | |||
+ | property ALinkColor; | ||
+ | property AllowTextSelect; | ||
+ | property DataProvider; | ||
+ | property FixedTypeface; | ||
+ | property DefaultTypeFace; | ||
+ | property DefaultFontSize; | ||
+ | property FactBAParag; | ||
+ | property FlagErrors; | ||
+ | property LinkColor; | ||
+ | property PrintSettings; | ||
+ | property MarginHeight; | ||
+ | property MarginWidth; | ||
+ | property ShowHints; | ||
+ | property TabOrder; | ||
+ | property TabStop; | ||
+ | property TextColor; | ||
+ | property Visible; | ||
+ | property VLinkColor; | ||
+ | property WantTabs; | ||
+ | |||
+ | property OnControlClick; | ||
+ | property OnControlClick2; | ||
+ | property OnControlChange; | ||
+ | property OnControlEditingDone; | ||
+ | property OnControlCreate; | ||
+ | property OnCurElementChange; | ||
+ | property OnDocumentOpen; | ||
+ | property OnHotChange; | ||
+ | property OnHotClick; | ||
A TIpHtmlPanel gets its contents from a [[TIpHTML]] descendant: | A TIpHtmlPanel gets its contents from a [[TIpHTML]] descendant: |
Revision as of 12:38, 26 August 2016
The TIpHtmlPanel component is the display part of the Turbopower Internet Pro package that delivers native HTML-access. The component is available from the IPro tab of the Component Palette.
property ALinkColor; property AllowTextSelect; property DataProvider; property FixedTypeface; property DefaultTypeFace; property DefaultFontSize; property FactBAParag; property FlagErrors; property LinkColor; property PrintSettings; property MarginHeight; property MarginWidth; property ShowHints; property TabOrder; property TabStop; property TextColor; property Visible; property VLinkColor; property WantTabs;
property OnControlClick; property OnControlClick2; property OnControlChange; property OnControlEditingDone; property OnControlCreate; property OnCurElementChange; property OnDocumentOpen; property OnHotChange; property OnHotClick;
A TIpHtmlPanel gets its contents from a TIpHTML descendant:
procedure TMainForm.ShowText( const txt: string );
var
fs: TStringStream;
pHTML: TIpHtml;
begin
try
fs := TStringStream.Create( txt );
try
pHTML:=TIpHtml.Create();
pHTML.LoadFromStream( fs );
finally
fs.Free;
end;
IpHtmlPanel1.SetHtml( pHTML );
except
on E: Exception do begin
MessageDlg( 'Error: '+E.Message, mtError, [mbCancel], 0 );
end;
end;
end;
See also