Recent

Author Topic: dumb question on TIpHtmlPanel  (Read 1960 times)

mtanner

  • Sr. Member
  • ****
  • Posts: 287
dumb question on TIpHtmlPanel
« on: April 11, 2017, 04:47:22 pm »
Hope I've got this in the right section of the forum. It's a really dumb question.

I want to display a simple HTML file in a form.
I have a form, with a TIpHtmlPanel on it, linked to a TIpFileDataProivider.

But what now? I cannot see any properties or methods by which to specify the name of the file I want to display.

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: dumb question on TIpHtmlPanel
« Reply #1 on: April 11, 2017, 05:06:40 pm »
In the folder components/turbopower_ipro/examples, there's a demo "subab.lpi" which contains a FileDataProvider. Essentially, just pass the name of the html file to the method OpenURL of the HtmlPanel.

On https://sourceforge.net/projects/tpipro/files/tpipro_docs/1.15/ you can find the original TurboPower documentation for the delphi version of the Internet Professionals components suite. Please note that only a small fraction has been ported to Lazarus. Documentation for the HtmlPanel & related begins at page 405. Data providers are explained following page 328.
« Last Edit: April 11, 2017, 05:12:59 pm by wp »

 

TinyPortal © 2005-2018