Just starting out? Need help? Post your questions and find answers here.
			
		
		
			
				
																			
								Skipsy 							 
						User 			
		Posts:  98 Joined:  Wed Apr 30, 2003 12:26 pmLocation:  France 
		
						
						
													
							
						
									
						Post 
					 
								by Skipsy  Wed Sep 03, 2003 3:54 pm 
			
			
			
			
			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 			
		Posts:  613 Joined:  Tue May 06, 2003 2:50 pmLocation:  Germany
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by freedimension  Wed Sep 03, 2003 3:56 pm 
			
			
			
			
			Is the File in the same directory as the Exe?
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Fred 							 
						Administrator 			
		Posts:  18351 Joined:  Fri May 17, 2002 4:39 pmLocation:  France
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Fred  Wed Sep 03, 2003 3:58 pm 
			
			
			
			
			you have an event loop, right ?
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								freak 							 
						PureBasic Team 			
		Posts:  5948 Joined:  Fri Apr 25, 2003 5:21 pmLocation:  Germany 
		
						
						
						 
													
							
						
									
						Post 
					 
								by freak  Wed Sep 03, 2003 4:31 pm 
			
			
			
			
			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 			
		Posts:  98 Joined:  Wed Apr 30, 2003 12:26 pmLocation:  France 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Skipsy  Wed Sep 03, 2003 4:56 pm 
			
			
			
			
			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 			
		Posts:  98 Joined:  Wed Apr 30, 2003 12:26 pmLocation:  France 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Skipsy  Wed Sep 03, 2003 6:07 pm 
			
			
			
			
			Yeesssssssssssssssss
The solution was in the link you gave me.
I did a search yet... Perhaps I have 2 left hands  
Thks
Beware of the man who has the solution before he understands the problem...