HtmlViewEventURL$(html) hangs up
Blitz3D Forums/Blitz3D Beginners Area/HtmlViewEventURL$(html) hangs up
| ||
Hi folks, just started to play around in B+ and tried the example from http://www.blitzbasic.com/bpdocs/command.php?name=HtmlViewEventURL&ref=gui_cat I have installed the latest BlitzPlus (1.39), XP with ServicePack and DirectX9.0c, etc.... the system is up2date.. I copied the example mentioned above, clicked on a link and the status bar at the bottom of the browser shows where it WANTS to go, but it is just flickering and the prog freezes... no movements, no closing... only ctrl-alt-del helped... any ideas? regards, P! |
| ||
BTW: my internet security is set to default "medium" in IE |
| ||
I'd report it in the BlitzPlus Bugs forum. It works fine here btw. |
| ||
Beaker: just posted there, I hope someone knows what it could be... I think it could be Service Pack 2 related, because I got two different boxes here with XP, both with Service Pack 2, it does not run on both... What system do you have? Regards, P! |
| ||
I'm still on SP1. |
| ||
I still got no real feedback on this topic... Anyone here with SP2 on XP who has the HtmlViewEventURL thing running? |
| ||
Just tested it on another box with SP1 only, still the same error... beaker: could you compile your running version and mail it to me? maybe I got some DLLs f*cked up on my system... if your compiled version is running, it must be my system or one of the applications that I have installed on all 3 systems... mail would be: puzzler (-at-) arcor.de I would be very very thankful :-) P! |
| ||
I GOT IT!!! the miracle with my is: i need FlushEvents() just that single line and everything is working fine. thanks for your patience! P! ; A Basic Blitz Web Browser! win=CreateWindow("Basic Blitz Web Browser",100,100,500,500,0,35) ; Create htmlview gadget - for HTMLViewEventURL to return a string, we need to set style to 2 (NONAVIGATE) html = CreateHtmlView(0,0,500,480,win,3) ; Ensure the HTML view will stretch to meet the size of the window when it is resized SetGadgetLayout html,1,1,1,1 ; Go to URL HtmlViewGo html,"http:\\www.blitzbasic.com" ; Create label gadget that will display event url label=CreateLabel("",0,480,500,20,win,3) ; Ensure that the label stays at the bottom of the window SetGadgetLayout label,1,1,0,1 Repeat id = WaitEvent() If id=$803 Then Exit ; If gadget event occurs... If id=$401 And EventSource()=html url$=HtmlViewEventURL$(html) Select EventData() Case 0 ;page load event ; Set label's text to that of the htmlview event url SetGadgetText label,"loaded "+url$ Case 1 ;user navigate event SetGadgetText label,"navigating to "+url$ FlushEvents() HtmlViewGo html,url$ End Select EndIf Forever |