Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why and where to use the AutoYield property?
Message
 
À
10/02/1999 00:46:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00185843
Message ID:
00185856
Vues:
12
>I´ve read that in order for an ActiveX control to work properly, you must set _VFP.AutoYield to .F. Why do I have to do this? In which event must I set it? This is very important to me because I am going to use ActiveX controls a lot.
>
>TIA
>
>Luis Guerra
Luis,

The AutoYield property was not properly documented in VFP 5, don't know about 6.

VFP programmers should be aware of its existence and check if it applies to the particular OCX they are implementing.
Mabry and Catalyst FTP OCXs, Sheridan Calendar Widgets need the AutoYield to be set to .F.

We had a discussion of how to implement the Autoyield property in 97, and Paul Vlad Tatavu came with the cleaner implementation, that I paste here.

"Assuming that you don't want to set it at the beggining of you app, I would say that you should have a global var or app property to keep the number of active OCX that need Autoyield = .F. You should increment it in Init and decrement it in Destroy. The ocx that decrements it to zero, resets it to .t."

José
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform