Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing HTMLElementEvents interface
Message
From
18/07/2018 04:10:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Miscellaneous
Thread ID:
01661205
Message ID:
01661239
Views:
55
>>update: now I found the link in your prg, and in the C# example there it says
>>private void HtmlElement1_KeyDown(Object sender, HtmlElementEventArgs e)
>>
>>So, ahem, the see sharp guys get the parameters and e is fully exposed, they can get its full PEM set. It's easy then. Our eventhandler is blind.
>
>It's been a while since I've done this but the way you can do this in IE is:
>
>
>FUNCTION GetEventObject()
>
>IF ISNULL(THIS.oDoc)
>   RETURN .NULL.
>ENDIF
>
>RETURN this.oDoc.ParentWindow.Event
>ENDFUNC
>
>
>Roundabout way of getting access to the event object although I'm not 100% sure this still works if you're running in IE 11 mode which uses the standard DOM event system. I pulled this code out of Help Builder 4 years ago and never looked back at that support train wreck :-)

It truly is, as we'd say, "around the dog then through the little door" way of getting at it, but it works and exposes the properties I need. I'll give it a try.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform