Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The proper use of the AutoYield property
Message
From
27/11/1997 23:37:35
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00062393
Message ID:
00062667
Views:
53
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.

Otherwise, if you have more than one ocx... I'm sure you understood the "scenario"! :)

Vlad

>I'm trying to make my opinion on the good use of the Autoyield property. I've come to the following conclusion: generally you should leave it to its default value (.T.). But if you have use an ActiveX control on a given form, you should set _VFP.Autoyield = .F. in its init() and reset it to .T. in its Destroy() . Do you agree with this simplistic approach?
>
>Althought it should be much easier to set it to .F. at the top of the application, I've experienced that it generates at least refreshing problems.
>
>José
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform