Re: Limit text input based upon its height and width (part 2)

2006-09-22 Thread William de Smet
Hi there, Well, it's hard to admit but I had the 'don't wrap' of fld "tekst" activated in the inspector and therefore it didn't work. After deselecting 'Don't wrap' the formattedHeight script doesn't work anymore so textinput is still not limited to the height of the field. I still don't get i

Limit text input based upon its height and width (part 2)

2006-09-22 Thread William de Smet
Hi there, I just tested the earlier suggested code and it works. But what if I want to limit text input based upon its height and width? I just thought to replace the word 'height' with 'width' and put in extra code but that doesn't work: if (the formattedHeight of field "tekst" < the height of