Weird textfield issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Weird textfield issue
I am using Livecode V5.5.4 and am being plagued by a weird problem.
In the attached stack, normal text fields are used to enable input of names and addresses etc.
If the number of lines used exceed the visible lines (6), adding a line by using RETURN on the keyboard, results in the cursor jumping to the next field, as though TAB had been used.
You might think this is trivial, but I cannot find any reason for this behaviour.
Your advice please!
Sorry, cannot attach the stack!?!?
In the attached stack, normal text fields are used to enable input of names and addresses etc.
If the number of lines used exceed the visible lines (6), adding a line by using RETURN on the keyboard, results in the cursor jumping to the next field, as though TAB had been used.
You might think this is trivial, but I cannot find any reason for this behaviour.
Your advice please!
Sorry, cannot attach the stack!?!?
Re: Weird textfield issue
I'm not sure that I can help, since I am using version 4.53, which is well before the updated field controls.
What type of field is it? (plain, basic table, etc?)
You should be able to attach the stack file by using a compressed zip file. Maybe someone will come along, able to assist.
Regards,
-Doc-
What type of field is it? (plain, basic table, etc?)
You should be able to attach the stack file by using a compressed zip file. Maybe someone will come along, able to assist.
Regards,
-Doc-
Re: Weird textfield issue
The problem has now been traced to the Tab on return setting of the field properties.
Making that property false overcomes the problem of adding onto the end of the field.
BUT
there is no way (aboart from using the mouse) to access the next field.
Obviously, speed of input by using the tab key is essential.
So, how do I get easy text addon and tab?
Making that property false overcomes the problem of adding onto the end of the field.
BUT
there is no way (aboart from using the mouse) to access the next field.
Obviously, speed of input by using the tab key is essential.
So, how do I get easy text addon and tab?
Re: Weird textfield issue
If you turn off autotab (tab on return) the tab key still works fine to move you to the next field, and the return key will still jump you to the next line in the current field.
If you need a more complex set of actions you can add script for returninfield, enterinfield. If you need to be able to add tabs to fields and use another method to switch between fields, that is possible too with some scripting.
For example if you want to be able to type tabs into the field, a script like so..
Sorry for the extra info, not sure what your end goal is so figure extra info can't hurt.
EDITED: to fix morning "DOH" issues.
If you need a more complex set of actions you can add script for returninfield, enterinfield. If you need to be able to add tabs to fields and use another method to switch between fields, that is possible too with some scripting.
For example if you want to be able to type tabs into the field, a script like so..
Code: Select all
on rawkeydown pKey
if numtochar(pKey) is tab then
put tab into the selection
else
pass rawkeydown
end if
EDITED: to fix morning "DOH" issues.
Re: Weird textfield issue
Thank you sturgis,
Removing Tab on return allows the text to be added and still moves me to the next field.
I did not try the tab key after I set Tab on return to false.
I feel really silly now, I just assumed if setting it to true did what it said, setting to false would do the opposite.
Now I wonder what the point of the setting is?
The extra bit you provided is always useful to others.
Removing Tab on return allows the text to be added and still moves me to the next field.
I did not try the tab key after I set Tab on return to false.
I feel really silly now, I just assumed if setting it to true did what it said, setting to false would do the opposite.
Now I wonder what the point of the setting is?
The extra bit you provided is always useful to others.
Re: Weird textfield issue
The tabkey on return setting is actually pretty useful. Want a text field that allows only 1 line of input? Easy to turn that on, with the bonus that when you hit enter it moves to the next field for entry. All depends on what you're going for.