[Iup-users] WebBrowser widget... How To Implement Help?
Brought to you by:
scuri
From: Jeremy C. <je...@co...> - 2010-12-25 14:34:42
|
I am attempting to implement a help widget and running into difficulties. My basic design is that my app has several HTML pages, some dynamically generated. I was hoping to intercept navigation calls via the NAVIGATE_CB, return IUP_IGNORE on pages that I want to handle and then using the HTML attribute to set the pages content. This, however, is not working. The web browser widget (Windows) continues to do whatever it first set out to do, in my case load: http://help/page1.html. Which, of course times out in a few seconds. So, my next guess was to call iup_set_attribute(hWeb, "STOP", NULL); when I want to handle the content. This also does not work. The web widget continues trying to load http://help/page1.html. So, my next guess was to use my own protocol: help://page1 but this does not work either because of the above situations, only instead of timing out it simply states invalid protocol. On all of these, in my events I have printf statements ensuring my methods are being called correctly and they are. Where do I go from here? I can easily enough display the first page via the HTML attribute, but any navigation thereafter is impossible from what I can see, short of including my own internal web server :-/ Jeremy |