This works only for OCXs that receive the focus. See also my reply to José Constant.
Vlad
>Jose,
>
>I've subclassed the controls; set autoyield .f. on gotfocus, .t. on lostfocus.
>
>Hank
>
>>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é
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement