Thread View: borland.public.cppbuilder.multimedia
5 messages
5 total messages
Started by [wilkas]
Tue, 25 Feb 2003 10:44
How do I load *.htm with CppWebBrowser ?
Author: [wilkas]
Date: Tue, 25 Feb 2003 10:44
Date: Tue, 25 Feb 2003 10:44
3 lines
1048 bytes
1048 bytes
I'd like to load *.htm file from same project dir, with my flash graphics. wilkas
Re: How do I load *.htm with CppWebBrowser ?
Author: Hans Galema
Date: Tue, 25 Feb 2003 12:04
Date: Tue, 25 Feb 2003 12:04
19 lines
1569 bytes
1569 bytes
[wilkas] wrote: > I'd like to load *.htm file from same project dir, with my flash graphics. If the file is C:\Myproject\index.html then use CppWebBrowser1->Navigate(WideString ( "file:///C:/Myproject/index.html" ) ); or CppWebBrowser1->Navigate(WideString ( "file:///C|/Myproject/index.html" ) ); Questions concerning TCppWebBrowser are better asked in ..cppuilder.vcl.components.using ..cppbuilder.internet.web Hans.
Re: How do I load *.htm with CppWebBrowser ?
Author: [wilkas]
Date: Tue, 25 Feb 2003 12:28
Date: Tue, 25 Feb 2003 12:28
1 lines
1029 bytes
1029 bytes
thank you.
Re: How do I load *.htm with CppWebBrowser ?
Author: [wilkas]
Date: Tue, 25 Feb 2003 14:24
Date: Tue, 25 Feb 2003 14:24
3 lines
1115 bytes
1115 bytes
mhm, but what if i cary my work to other pc to some x:\xxx\xxx....\xxx\ dir? > If the file is C:\Myproject\index.html then use
Re: How do I load *.htm with CppWebBrowser ?
Author: Hans Galema
Date: Tue, 25 Feb 2003 14:39
Date: Tue, 25 Feb 2003 14:39
37 lines
1949 bytes
1949 bytes
The TCppWebBrowser wil always be in some directory. If the .html file is in the same directory then the path to the application is can be found using ParamStr(0); Lets say the application and the .html file are: F:\MyDir\MySubDir\MyApplication.exe F:\MyDir\MySubDir\index.html AnsiString Path = ParamStr(0); Now Path == F:\MyDir\MySubDir\MyApplication.exe; AnsiString Dir = ExtractFilePath ( Path ); Dir is now F:\MyDir\MySubDir\ AnsiString FileName = Path + "index.html"; FileName is now F:\MyDir\MySubDir\index.html You only have to make a function that changes this in file:///F|/MyDir/MySubDir/index.html maybe (untested) file:///F|\MyDir\MySubDir\index.html would work too. Hans. [wilkas] wrote: > mhm, but what if i cary my work to other pc to some x:\xxx\xxx....\xxx\ dir?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads