• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

How can we creat a WebBrowser on Linux by Kylix?

Thank you
0
ntvietvn
Asked:
ntvietvn
1 Solution
 
da99rmdCommented:
specify your question a bit better thx.

/Rob
0
 
ntvietvnAuthor Commented:
I tried to do an application with TEdit,TButton  who works like the  Mozila Navigator. I want that when I enter an URL in Edit1 and click on this Button, the web page will load  in the application. I managed to do it on Delphi but not on Kylix. Could anyone help me, please? Thank you.
0
 
Karl Heinz KremerCommented:
The Delphi system will very likely add an IE control to your application. Linux does not support controls like this, which means that you have to do this manually. You need to add e.g. the Mozilla rendering engine 'Gecko' to your application and call it whenever you need the browser.

However, this is not how things are usually done in Linux. THe standard approch to this is to call an external browser and just hand off the URL you want to display.

So, welcome to the wonderful world of Linux programming :-)
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
ntvietvnAuthor Commented:
Thanks a lot, but I don't know how to call an external browser with kylix. Could you help me please ?
Thanks
0
 
Karl Heinz KremerCommented:
I'm not familiar with Kylix, so the real work is up to you ;-) You can probably call an external program (with something like a system() call). Once you know how to do that, you need to find out which browser to call. Because there is not just one browser, the most straight forward approach is to let your users configure which browser to use. There are a few browser locations you can try first if you don't have a specific path configured:

/opt/kde3/bin/konqueror
/opt/mozilla/mozilla
/usr/local/mozilla/mozilla

0
 
manish_regmiCommented:
hi,
a better way is to look, how the browsers in linux are made. See the source codes. But that wont be so easy.
http://www.mozilla.org/source.html

galeon was made using features of mozilla. see its codes to know how to call functions of mozilla.
http://galeon.sourceforge.net/download/

regards manish
0
 
Karl Heinz KremerCommented:
manish, thanks for supporting my first suggestion :-)
0
 
ahoffmannCommented:
> .. the web page will load  in the application ..
if you mean that the HTML code should be rendered, see previous comments.
If you mean that you just want to display the text, then the usual way is somehow like (pseudo code):
  open(FILEHANDLE, "web page" );
  read( FILEHANDLE );
  write( FILEHANDLE );
;-)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now