Page 1 of 1
Disable Multi-line Input on Text entry field in livecode
Posted: Tue Jul 07, 2015 7:28 am
by shalu
Hi,
I am beginner in livecode, I am looking for how Disable Multi-line Input on Text entry field in livecode

Re: Disable Multi-line Input on Text entry field in livecode
Posted: Tue Jul 07, 2015 7:33 am
by Dixie
set the 'dont wrap' in the property inspector of the field or, by script...
Code: Select all
set the dontWrap of field 1 to true
Re: Disable Multi-line Input on Text entry field in livecode
Posted: Tue Jul 07, 2015 7:39 am
by shalu
If I am using enter key text move upwards
Re: Disable Multi-line Input on Text entry field in livecode
Posted: Tue Jul 07, 2015 7:43 am
by Dixie
in the script of the field, put
Code: Select all
on enterInField
exit to top
end enterInField
Re: Disable Multi-line Input on Text entry field in livecode
Posted: Tue Jul 07, 2015 7:54 am
by shalu
Hi,
Still I can give multiple text

Re: Disable Multi-line Input on Text entry field in livecode
Posted: Tue Jul 07, 2015 8:08 am
by Dixie
Oh !... it works here ...for me ... set the 'tab on return' to true as well...
Re: Disable Multi-line Input on Text entry field in livecode
Posted: Tue Jul 07, 2015 2:21 pm
by dunbarx
Hi.
Are we sure we are understanding the original problem? What do you mean by "disable multi line..."? Is it that you want to restrict user entry to a single line? That is, to prevent a return character from being entered into that field?
Craig Newman