On 3/1/07 1:43 PM, "Dennis Birch" <[EMAIL PROTECTED]> wrote:

>> I think I may be missing something in the HTMLViewer implementation. The
>> only way I have found to intercept a click on a link is through the
>> DocumentBegin event. There, it's trivial to use a ShowURL statement to
>> display the link in an external web browser. The problem is, the HTMLViewer
>> also displays the linked page, which I don't want.
>
> I don't know how this would work in conjunction with the first part,
> but as far as blocking display of a page, just put return True in the
> CancelClose event of the HTMLViewer control. Of course that also
> blocks loading the first page, so you'll want to add an inited flag to
> your window (or HTMLViewer subclass) that gets set to true after your
> intended page loads. And you'll need a reset method to set it to false
> at the appropriate time. Let me know if that helps.

Returning true from the CancelLoad event does, indeed do what I want (also
using ShowURL in that event).

That's somewhat of a confusing design though. Perhaps the documentation
needs to be a bit better in this area?

Thanks for the help!


Sincerely,

Scott
-- 
SearchWare Solutions
Simply Great Software
http://www.searchwaresolutions.com

Webthoughts: http://www.searchwaresolutions.com/other/weblog/


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to