Webgadget...

Just starting out? Need help? Post your questions and find answers here.
Skipsy
User
User
Posts: 98
Joined: Wed Apr 30, 2003 12:26 pm
Location: France

Webgadget...

Post by Skipsy »

Hello,

I just want to display an htm page in a window.

What's wrong in this ?

Code: Select all

OpenWindow(1, 1, 1, 200, 200,#PB_Window_SystemMenu, "test htm")  
CreateGadgetList( WindowID() )
WebGadget( 1, 10, 10, 190, 190, "test.htm" )
It displays nothing :!: :!:
Thks guys.
Beware of the man who has the solution before he understands the problem...
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Is the File in the same directory as the Exe?
Try the full path to the Html-File.
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

you have an event loop, right ?
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

You MUST specify the full path for a local html file.

Read more about that in this thread:
viewtopic.php?p=25107#25107

Timo
quidquid Latine dictum sit altum videtur
Skipsy
User
User
Posts: 98
Joined: Wed Apr 30, 2003 12:26 pm
Location: France

Post by Skipsy »

yes I have a while 1/wend loop then.

I forgot to mention that it does not point to an URL but to an HTM page.
Is it permitted ?
I have also tried to change the last parameter with :
"c:/PB/htm-test/test.htm"

:?: :?:
Beware of the man who has the solution before he understands the problem...
Skipsy
User
User
Posts: 98
Joined: Wed Apr 30, 2003 12:26 pm
Location: France

Post by Skipsy »

Yeesssssssssssssssss

The solution was in the link you gave me.

I did a search yet... Perhaps I have 2 left hands :wink:

Thks
Beware of the man who has the solution before he understands the problem...
Post Reply