Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select on entry
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01026039
Message ID:
01026092
Vues:
15
>Nadya,
>
>Apparently, setting the SelectOnEntry doesn't have any effect until the control is redrawn. So, if you change your assign method to something like this, it will work:
>
>	PROCEDURE lNoSelectOnEntry_Assign
>		LPARAMETERS vNewVal
>
>		IF vNewVal
>			LOCAL loObj AS Object
>
>			FOR EACH loObj IN this.Objects
>				IF PEMSTATUS(loObj, 'SelectOnEntry', 5) AND loObj.SelectOnEntry
>					loObj.SelectOnEntry = .f.
>					loObj.Left = loObj.Left
>				ENDIF
>			ENDFOR
>		ENDIF
>	ENDPROC
>
>Setting the Left back to itself forces the control to be redrawn and the SelectOnEntry to be re-evaluated.
>
>HTH,
>Chad
>

Interesting! Do you think it's a bug? Why setting the property in run-time doesn't have an effect?

This particular form has lots of objects with inner containers. I guess, I need to find a better way to achieve my goal.

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform