Re: Silly Text Field Question

2016-09-20 Thread Mike Bonner
the card. > > Peter > -- > Peter Reid > Loughborough, UK > > > On 20 Sep 2016, at 10:14pm, use-livecode-requ...@lists.runrev.com wrote: > > > > Date: Tue, 20 Sep 2016 07:07:42 -0600 > > From: Mike Bonner > > To: How to use LiveCode > >

Re: Silly Text Field Question

2016-09-20 Thread Peter Reid
o provide the default behaviour for all fields on the card. Peter -- Peter Reid Loughborough, UK > On 20 Sep 2016, at 10:14pm, use-livecode-requ...@lists.runrev.com wrote: > > Date: Tue, 20 Sep 2016 07:07:42 -0600 > From: Mike Bonner > To: How to use LiveCode > S

Re: Silly Text Field Question

2016-09-20 Thread Richmond
Well, I missed something as well. I just put this script in the cardScript: on openCard set the autoTab of fld "f1" to true set the autoTab of fld "f2" to true set the autoTab of fld "f3" to true set the autoTab of fld "f4" to true end openCard and everything works . . . even if I d

Re: Silly Text Field Question

2016-09-20 Thread Richmond
Maybe I'm being a bit thick, but . . . I have a stack with four textFields and this script in the cardScript: on tabkey put the id of the selected fld into FLDN set the selected fld FLDN to not the selected fld FLDN end tabkey Which means that every time I press my TAB key the selection p

Re: Silly Text Field Question

2016-09-20 Thread Mike Bonner
Try this.. local sHilitedelay on openField -- sHilitedelay is used to avoid a weird side effect when regaining stack focus -- by clicking on a field in the card. If a field other than the previously selected -- is clicked, it can start a runaway loop. The delay solves this problem. -- when expe

Silly Text Field Question

2016-09-20 Thread Peter Reid
I know I'm missing the obvious but I just can't figure out how to get the following behaviour with text fields... 1. When the user presses the tab key on the keyboard, the next field is selected and the current content of the next field is selected (so any typing replaces all the content). 2.