Missing function? HtmlViewEventURL()
BlitzMax Forums/MaxGUI Module/Missing function? HtmlViewEventURL()
| ||
| Hello, I don't know if I should write this here or maybe in the MaxGUI Bug-Forum. In the MaxGUI help is writen: [...] HtmlViewStatus, HtmlViewCurrentURL and HtmlViewEventURL provide extended information about the state of an HTMLView gadget while HtmlViewRun allows scripts to be run (on some platforms). [...] But the function HtmlViewEventURL() doesn't exists :( Maybe it has been forgotten...? I cloudn't find anything about this in the web. Does somebody knows something about this? Thank you! greets #Reaper |
| ||
Documentation is not so good sorry. Try using GadgetText for the current address location of the htmlview:
Strict
Local window:TGadget
Local htmlview:TGadget
window=CreateWindow("My Window",30,20,600,440,,15|WINDOW_ACCEPTFILES)
htmlview=CreateHTMLView(0,0,ClientWidth(window),ClientHeight(window),window)
SetGadgetLayout htmlview,1,1,1,1
HtmlViewGo htmlview,"www.blitzmax.com"
While WaitEvent()
Print CurrentEvent.ToString()
Print GadgetText(htmlview)
Select EventID()
Case EVENT_WINDOWCLOSE
End
End Select
Wend
|
| ||
| Hi, sorry, but this is not what I mean ;) But thanks for your answer. I mean the HtmlViewEventURL() like in BlitzPlus, which (should) return the URL if I press on a link in the HtmlView, not the current url of the HtmlView, so that the programm could react with it own functions. I hope that I write it a little bit understandable, sorry :( Thank you :) |
| ||
| "If the HTMLVIEW_NONAVIGATE style is selected, EVENT_GADGETACTION is generated when the user clicks on a link with EventText containing the requested URL." Is that what you want? |
| ||
| Thank you! It works fine :) |