>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