Recent

Author Topic: Whats TWebBrowser in Lazarus?  (Read 18682 times)

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Whats TWebBrowser in Lazarus?
« on: June 06, 2011, 08:15:07 pm »
 :D

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: Whats TWebBrowser in Lazarus?
« Reply #1 on: June 06, 2011, 11:27:52 pm »
I have no direct experience with TWebBrowser, but did find this link...
http://delphi.about.com/od/twebbrowser/TWebBrowser_Delphi_Usage_Examples_Tips_and_Tricks.htm

Quoting ...
The TWebBrowser Delphi component provides access to the Web browser functionality from your Delphi apps (to allow you to create a customized Web browsing application or to add Internet, file and network browsing, document viewing, and data downloading capabilities to your applications).

bobo

  • Full Member
  • ***
  • Posts: 171

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Whats TWebBrowser in Lazarus?
« Reply #3 on: June 12, 2011, 10:43:32 am »
Great replies,
but I don't think there is an exact code for lazarus from delphi using twebBrowser.

I doubt about gecko, but turbopower i don't think so.

thanks :D

Actually I'm asking because I'm worried using my Delphi code with TWebBrowser will not work under Lazarus.
what's the nearest component to use in Lazarus?  :)
« Last Edit: June 12, 2011, 10:45:51 am by xenblaise »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8831
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Whats TWebBrowser in Lazarus?
« Reply #4 on: June 12, 2011, 06:31:05 pm »
Quote
Actually I'm asking because I'm worried using my Delphi code with TWebBrowser will not work under Lazarus.
what's the nearest component to use in Lazarus?
None I'm afraid, both Gecko and Ipro are different since they're not designed as native Windows browser component wrapper (the one that IE and chm viewer use). But AFAIK there's a Gecko for Delphi, so if you convert your Delphi project to use it, converting to Lazarus might be easier.

bobo

  • Full Member
  • ***
  • Posts: 171
Re: Whats TWebBrowser in Lazarus?
« Reply #5 on: June 12, 2011, 07:07:51 pm »
Remember, that TWebBrowser is using IE (Windows only) but FPC/Lazarus tries to make everything work cross platform.

By using the search function on this forum, I found 2 additional relevant entries (there are many listed that you can check out)


http://www.lazarus.freepascal.org/index.php/topic,9762.msg51747.html#msg51747

http://www.lazarus.freepascal.org/index.php/topic,7854.0.html

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Whats TWebBrowser in Lazarus?
« Reply #6 on: June 13, 2011, 11:29:13 am »
@Leledumbo , Gecko is the nearest, ohm.

And @Bobo,
So, Timewarp has the best solution?
Uses Windows, Comobj;

procedure TForm1.Button1Click(Sender: TObject);
var browser: olevariant;
begin
 browser := CreateOleObject('InternetExplorer.Application');
 windows.setparent(browser.hwnd, form1.handle); // you can use panel1.handle, etc..
 browser.toolbar:=false;
 browser.fullscreen:=true;
 browser.Resizable:=false;
 browser.visible:=true;
 Browser.Navigate('http://www.lazarus.freepascal.org/');
end;     

SO, what's the input in Linux or MAC
browser := CreateOleObject('InternetExplorer.Application-whats in linux or mac here?');

thanks to both of you

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: Whats TWebBrowser in Lazarus?
« Reply #7 on: June 13, 2011, 11:33:43 am »
OLE is windows-only xenblaise.
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

avra

  • Hero Member
  • *****
  • Posts: 2566
    • Additional info
Re: Whats TWebBrowser in Lazarus?
« Reply #8 on: June 15, 2011, 09:04:21 am »
Embedded Chrome can be used with Delphi, and conversion to Lazarus should not be hard:
http://delphimax.wordpress.com/2010/08/23/embedding-chrome-browser-in-delphi

Native HTML Viewer Pro component for Delphi is now in public domain. It might also be interesting to you:
http://pbear.com/htmlviewers.html
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Whats TWebBrowser in Lazarus?
« Reply #9 on: June 15, 2011, 04:01:38 pm »
Native HTML Viewer Pro component for Delphi is now in public domain. It might also be interesting to you:
http://pbear.com/htmlviewers.html

Already ported:

http://wiki.lazarus.freepascal.org/THtmlPort

Although I would guess that he's looking for more than this.

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Whats TWebBrowser in Lazarus?
« Reply #10 on: June 16, 2011, 03:31:44 pm »
>>OLE is windows-only xenblaise.

Ohm, what I'm asking is the nearest code of TWebBrowser and can be done with windows, mac and linux.

I'll try the links,


thanks

 

TinyPortal © 2005-2018