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 did lose my temper several times.
https://www.dropbox.com/s/rnnj9rxla17ij8j/Text%20Hop.livecode.zip?dl=0
Richmond.
On 20.09.2016 10:43, Peter Reid wrote:
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. If the user uses the mouse to click into a different text field, the current
content of the next field is selected and behaves just like 1.
What's happening is that I can get 1. to work but every time the user
mouse-clicks into a different field, that target field gets selected but its
content is deselected and the I-bar insertion point is placed where the mouse
click occurred.
So far I've got the following in the card script to provide the same behaviour
for all the fields on it:
on openField
hiliteText
end openField
on hiliteText
put the id of the target into tID
if there is a field id tID then
select the text of the target
end if
end hiliteText
Any suggestions please?
Peter
--
Peter Reid
Loughborough, UK
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode