Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implementing HTMLElementEvents interface
Message
De
18/07/2018 04:10:07
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Divers
Thread ID:
01661205
Message ID:
01661239
Vues:
56
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform