Solved

How can we creat a WebBrowser on Linux by Kylix?

Posted on 2004-03-28
10
253 Views
Last Modified: 2010-04-22
Thank you
0
Comment
Question by:ntvietvn
10 Comments
 
LVL 8

Expert Comment

by:da99rmd
ID: 10704155
specify your question a bit better thx.

/Rob
0
 

Author Comment

by:ntvietvn
ID: 10707170
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
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 125 total points
ID: 10707382
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:ntvietvn
ID: 10708842
Thanks a lot, but I don't know how to call an external browser with kylix. Could you help me please ?
Thanks
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10708893
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
 
LVL 8

Expert Comment

by:manish_regmi
ID: 10721785
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
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10722542
manish, thanks for supporting my first suggestion :-)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10727532
> .. 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Centos Boot Error 42 122
how does yum update work 2 55
how can i fully uninstall a puppet client? 2 105
add some character at the end of line in vi 7 79
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question