[Xerte] Re: Limiting height of text input - solved.

Dave Burnett d_b_burnett at hotmail.com
Mon Feb 11 16:42:19 GMT 2013



You have to be explicit with autoSize and declare it first.
grrrr.3 hours.



teicon.txt.autoSize = false;teicon.txt._height = 18;teicon.txt._width = 215;teicon.txt.border = 1;teicon.txt.type = 'input';teicon.txt.selectable = 1;teicon.txt.multiline = 0;myTF = new TextFormat();myTF.font = "Verdana";myTF.size = 14;teicon.txt.setNewTextFormat(myTF);setFocus(teicon.txt);teicon.txt.text = "Enter your name here";Selection.setSelection(0,20);















From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 11 Feb 2013 16:11:35 +0000
Subject: [Xerte] Re: Limiting height of text input

I dunno. The text entry response does the same thing. MaxChars might be as good as you’ve got. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 11 February 2013 14:53
To: Xerte list
Subject: [Xerte] Limiting height of text input If you keep typing, it will wrap and expand the input box. How to defeat this (without using maxChars)?  teicon.txt._height = 18;teicon.txt.background = false;teicon.txt.border = true;teicon.txt.type = 'input';teicon.txt.selectable = true;teicon.wordWrap = false;teicon.txt.multiline = false;setFocus(teicon.txt);teicon.txt.text = "";





_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20130211/33b59190/attachment.html>


More information about the Xerte mailing list