Is it possible to limit text input in a field based upon its height?

Robert Presender rpresender at cox.net
Fri Jul 20 14:37:37 EDT 2007


Hi,

If the field height is divided by the textHeight, the result is the 
number of lines.
You can then limit the number of lines.
See textHeight and keyDown in the docs.  Don't know if the spacebar can 
be used with keyDown.

Regards ... Bob


on Tue, 10 Jul 2007 15:55:00 -0700 (PDT) haribo 
<ledersitze at netcologne.de> wrote:

Sarah Reichelt-2 wrote:
>
> On 9/17/06, William de Smet <wdesmet at wanadoo.nl> wrote:
>> Hi there,
>>
>> I made a field which is 500(width) x 530(height) pixels and now I am
>> looking for a way to limit the text input in this field based upon the
>> height of the field.
>> I dont want more text than the height of the field.
>>
>
> If you set the autoTab of a field to true, when the user gets to the
> last line and presses Return or Enter, it will be as if they pressed
> Tab to go to the next field. They won't be able to enter more lines
> than are visible.
>
> Cheers,
> Sarah
> _______________________________________________
> 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
>
>
works fine, but
is there any way to set it to the spacebar, if the user dont click the
enterkey it dont work.
ralle
-- 

Hi,

If the field height is divided by the textHeight, the result is the 
number of lines.
You can then limit the number of lines.
See textHeight and keyDown in the docs.  Don't know if the spacebar can 
be used with keyDown.

Regards ... Bob




More information about the use-livecode mailing list