Not passing a return key or enter key.

Glen Bojsza gbojsza at gmail.com
Sat Aug 13 09:28:24 EDT 2005


Hi Jacque,

Unfortunately I want to allow the user to use return key to enter the
minimum they want on the first two lines.

The first line they may want to use as a Title or description with one
or two words and then hit enter and give details. So autotab cannot
work here.

But I am glad you mentioned the pasteKey and may not work in the ide
... this would save me a lot of troubleshooting.

regards

On 8/12/05, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> Glen Bojsza wrote:
> >
> > I wish to limit the number of lines (no more than 3) in a field that a
> > user add input.
> 
> Size your field to exactly 3 lines high. Set the autotab property of the
> field to true. The field will now allow only three lines of text. Any
> returns entered after that will cause the selection to jump to the next
> editable field. No scripting required.
> 
> You can still paste more than 3 lines though. For that, trap the
> "pastekey" message and trim off all but the first three lines. Note that
> pastekey may not work in the IDE, but will work okay in a standalone or
> when you suspend development tools.
> 
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list