Re: detecting mouse events in MSHTML edit mode
From: James Han*** (~!jamie_at_darwinconsulting.com)
Date: 04/29/04
- Next message: jamiewalker_at_wp.shawcable.net: "Bin Laden Captured - photos and video"
- Previous message: David Lo: "IWebBrowser2 screenshot FAILS with WM_PRINT / IViewObject::Draw"
- In reply to: Andy Fish: "detecting mouse events in MSHTML edit mode"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 10:39:13 -0400
In C# you would do this by handling in the HTMLEvent Event and then
filtering for the appropriate one. I don't know how you'd do this in VB as
I've never used MSHTML in VB6.
You could also do this with HTMLDocumentEvents2, although I don't know how
you'd handle that either in VB6.
Hope that sets you on the right track!
James Han***
"Andy Fish" <ajfish@blueyonder.co.uk> wrote in message
news:c925c3dc.0404270808.63e1bb82@posting.google.com...
> Hi,
>
> Please excuse the crosspost - I'm not really sure what the difference
> is between these two groups.
>
> I am hosting MSHTML web browser in edit mode in my vb6 app, and I have
> managed to make it do nearly everything I need without resorting to
> extra DLLs or API programming. Just one problem remains:
>
> When the user edits the content of the HTML, I need to detect this so
> I can enable the 'save' button. I have embedded the editor inside a
> user control with KeyPreview set to 'true' so I can pick up keyboard
> events OK, but if the user does a 'cut' or 'paste' with the mouse,
> there is no event fired. There is no such thing as MousePreview and
> the web browser control does not generate any mouse events.
>
> The closest thing I have found is the StatusTextChange event which
> seems to fire when just about anything happens. unfortunately, if the
> user is near the bottom of the control when he brings up the menu,
> when he clicks paste the mouse is not over the control, so I don't
> even get StatusTextChange.
>
> Any hints would be very much appreciated
>
> Andy
- Next message: jamiewalker_at_wp.shawcable.net: "Bin Laden Captured - photos and video"
- Previous message: David Lo: "IWebBrowser2 screenshot FAILS with WM_PRINT / IViewObject::Draw"
- In reply to: Andy Fish: "detecting mouse events in MSHTML edit mode"
- Messages sorted by: [ date ] [ thread ]