ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: Binevent problèmes   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

lun. 08 février 2016, 01h33
ybenam
Algérie Algérie

atoutfox.public.association

Re: Binevent problèmes

Bonjour
Vous m'excuserez de communiquer en Anglais plus adapté pour la circonstance :

Bindevent() function provides ability to execute user code (an object method) when an event occurs.
there is 2 syntaxes using bindevent() function.(seee Foxhelp Bindevent)
With the first syntax, can use BINDEVENT( ) to bind events, properties, or methods
from native Visual FoxPro objects to other Visual FoxPro objects.

With the second syntax variation, can bind to Windows Message (Win Msg) events.
In your case there is no issue to use bidevent() unless you trap windows messages.

If you want to bind to events from Component Object Model (COM) objects, use the EVENTHANDLER( ) function.

*embed your com object on vfp9 object browser and see the interfaces wanted by your use.
*divide your command window to half screen and browser object to second half screen and then drag the interface to command window.
you obtain a complet class code for eventHandler.

see EVENTHANDLER( ) Function in foxHelp, there is an example shipped with.
for more informations on IE eventHandler for ex see this link (there is a test code eventhandler vfp-ie
browser activeX control):
http://yousfi.over-blog.com/2015/02/vfp-and-internet-explorer-eventhandler.html

Note:For the MS monthview load on object browser the MSCOMCtl2 control and choose the interface DmonthVieEvents...drag to command window and save as a prg class file for use if selected date change....see similar code in the link above.

Cordialement

Journal

MILCENT Bernhart pense que ce message est la bonne réponse ou qu'il est utile
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000017280
20 088 messages dans le forum • Liste complète des messages

Publicité

Les pubs en cours :

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2024.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3