Page 1 of 1

Webgadget: detect that a URL has been detected!

Posted: Thu Feb 21, 2008 2:40 pm
by Seymour Clufley
Strangely Google doesn't seem to have record of anybody else trying to do this with a WebBrowser.

I've got custom HTML with a ContentEditable DIV being streamed into the webgadget. Within a ContentEditable element, the user can type text and if they type a URL (or email address), IE will detect it and format it with the standard hyperlink appearance and HREF tag etc.

By default, the webgadget's IDM_AutoUrlDetect_Mode will be set to TRUE. That's fine. I don't want to change that.

What I want to do is detect that a URL has been detected!

This is so that my program can react to a URL being typed and do the formatting itself. It doesn't need to cancel IE's default formatting because that can be easily reversed; it just needs to know that a URL has been detected.

Any takers?

Thanks for reading,
Seymour.

Posted: Sat Mar 01, 2008 8:38 pm
by Nico
Search elementFromPoint in the Forum.