3 Line Edit Field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

3 Line Edit Field

Post by Googie85 » Thu Oct 23, 2014 2:23 pm

Hello Guys,

I am trying to make an edit box so that it is locked at 3 lines. What I have now is a field that can go on forever... Any help would be greatly appreciated!

Many Thanks,

Matthew.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: 3 Line Edit Field

Post by Klaus » Thu Oct 23, 2014 2:28 pm

Hi Matthew,

add this to the field script:

Code: Select all

on returninfield
   if the num of lines of me < 3 then
      pass returninfield
   end if
end returninfield
:D


Best

Klaus

Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Re: 3 Line Edit Field

Post by Googie85 » Thu Oct 23, 2014 2:52 pm

Thank you so much...

Post Reply