Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select on entry
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026039
Message ID:
01026092
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform