BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using TCppWebBrowser

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Pete Fraser
Guest





PostPosted: Tue May 02, 2006 7:03 pm    Post subject: Using TCppWebBrowser Reply with quote



I am trying to use TCppWebBrowser and coming up against all kinds of usage
problems.
Can anyone help with these?

1) How to tell it to display a local html file such as
d:\mydir\dir\myfile.html
I tried all kinds of variants of file://d:\mydir\dir\myfile.html using
forward and
backward slashes, none of which worked but work OK in IE and firefox
2) How to get the events which allow links to be displayed in status bar
etc.

Does anyone know of a web site that helps width this OR of an alternative
browser
that works well?

Thanks Pete
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue May 02, 2006 8:03 pm    Post subject: Re: Using TCppWebBrowser Reply with quote



"Pete Fraser" <pete.fraser (AT) frasersoft (DOT) nospam.com> wrote in message
news:4457a015$1 (AT) newsgroups (DOT) borland.com...

Quote:
How to tell it to display a local html file such as
d:\mydir\dir\myfile.html


Simply specify the local path and filename when calling Navigate(). Works
fine for me.

Quote:
How to get the events which allow links to be displayed in status bar etc.

TCppWebBrowser has an OnStatusTextChange event. The web browser control
manages the link text automatically for you.


Gambit
Back to top
Jim Dodd
Guest





PostPosted: Thu May 04, 2006 6:14 pm    Post subject: Re: Using TCppWebBrowser Reply with quote



Pete Fraser wrote:
Quote:
I am trying to use TCppWebBrowser and coming up against all kinds of usage
problems.
Can anyone help with these?

1) How to tell it to display a local html file such as
d:\mydir\dir\myfile.html
I tried all kinds of variants of file://d:\mydir\dir\myfile.html using
forward and
backward slashes, none of which worked but work OK in IE and firefox
2) How to get the events which allow links to be displayed in status bar
etc.

Does anyone know of a web site that helps width this OR of an alternative
browser
that works well?

Thanks Pete



Forgive the obvious question but I've made this mistake many times:

If you're entering the path as a quoted string, did you remember to
escape the backslashes?

"d:\\mydir\\dir\\myfile.html"

Regards,
Jim Dodd
Onset Computer Corp.
Back to top
Pete Fraser
Guest





PostPosted: Fri May 05, 2006 9:14 am    Post subject: Re: Using TCppWebBrowser Reply with quote

It was coming from an edit box so that wasn't the problem.
I'm not sure what the problem was because it works now!
It may have been to do with AnsiString to WideString conversion
- the BCB debugger wasn't showing any symbols so that
didn't help me debug the problem!
Rgds Pete

"Jim Dodd" <bcbuilderboy (AT) yahoo (DOT) com> wrote in message
news:445a3efe (AT) newsgroups (DOT) borland.com...
Quote:
Pete Fraser wrote:
I am trying to use TCppWebBrowser and coming up against all kinds of
usage problems.
Can anyone help with these?

1) How to tell it to display a local html file such as
d:\mydir\dir\myfile.html
I tried all kinds of variants of file://d:\mydir\dir\myfile.html using
forward and
backward slashes, none of which worked but work OK in IE and firefox
2) How to get the events which allow links to be displayed in status bar
etc.

Does anyone know of a web site that helps width this OR of an alternative
browser
that works well?

Thanks Pete

Forgive the obvious question but I've made this mistake many times:

If you're entering the path as a quoted string, did you remember to
escape the backslashes?

"d:\\mydir\\dir\\myfile.html"

Regards,
Jim Dodd
Onset Computer Corp.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.