I've seen a similar thing. I set the focus to a field, then "select after field 
xxx". Sometimes it does what you expect, sometimes it selects the text of the 
whole field. Send in time is the only way around these timing issues. 

Bob S


> On Apr 23, 2017, at 01:10 , Mark Schonewille via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> HYi Kaveh,
> 
> LiveCode sets the focus to the clicked object after running the scripts. If I 
> would select text the normal way, the selection would be deselected again, 
> because the focus would go away from the field to the button containing the 
> script. Using the send in time command, I make sure that this command is 
> executed after LiveCode completes its routines, also after LiveCode sets the 
> focus.
> 
> If you use a different way to execute the script rather then from a button or 
> other object that is activated by a click, you won't need this last line.
> 
> Moreover, sometimes I have this problem and sometimes not. I haven't figured 
> out why. At least, when it occurs, there is a way to solve it.
> 
> Kind regards,
> 
> Mark Schonewille


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to