[Xerte] Re: Text Entry scroll = auto

Dave Burnett d_b_burnett at hotmail.com
Fri Feb 18 15:19:22 GMT 2011



Not scrolling exactly.
Even if you specify _height and _width, without setting maxchars, the text continues to wrap and expand the input area downward.

In an effort to avoid using maxChars, (which I would like to, as this is a proto interaction)  I added:

icontextentry.txt.multiline = false;
icontextentry.txt.wordWrap = false;

If I use multiline = false; the input box collapses to a single character width.
If I use wordWrap = false; the input box continues expanding to the right until it's off screen 

I can't believe this is so complicated.
At least Flash could have learned one thing from AW.
Insert, drag to size, that's it.
;-)

From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 18 Feb 2011 14:29:35 +0000
Subject: [Xerte] Re: Text Entry scroll = auto



Scrolling was it? Would any engine-side support help? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 18 February 2011 14:27
To: Xerte list
Subject: [Xerte] Re: Text Entry scroll = auto 
Thanks Julian. That did it.

Still don't get it though.

If I create a new text object, I can see using setTextFormat, as it would be a "blank" object with no inheritance.

But if I'm using the default .txt object, it seems to use the properties applied in the icon, *except if there is no text in the field to begin with*.
And using setNewTextFormat seems to imply those properties are already there.

So to get a blank, single line, limited width, non-scrolling, non-collapsing, input text field with the correct font/size:

icontextentry.txt._height = 20;
icontextentry.txt._width = 300;
icontextentry.txt.background = true;
icontextentry.txt.border = true;
icontextentry.txt.type = 'input';
icontextentry.txt.selectable = true;
icontextentry.txt.maxChars = 40;
myTF = new TextFormat();
myTF.font = "Verdana";
myTF.size = 14;
icontextentry.txt.setNewTextFormat(myTF);
setFocus(icontextentry.txt);  


What was the advantage over a regular text entry again?
;-)


From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 18 Feb 2011 08:46:04 +0000
Subject: [Xerte] Re: Text Entry scroll = autosetNewTextFormat() From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 17 February 2011 22:29
To: Xerte list
Subject: [Xerte] Re: Text Entry scroll = auto 
Should it be:
icontextentry.txt.setTextFormat(icontextentryFormat);

In either case, no joy.

Set the input font and size in the LO.
No change. This is funny.








Date: Thu, 17 Feb 2011 14:03:37 -0800
From: Paul.Swanson at harlandfs.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Re: Text Entry scroll = autoicontextentryFormat = new TextFormat();icontextentryFormat.size = 12; // 12 point icontextentry.setTextFormat(icontextentryFormat); Does that do anything? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, February 17, 2011 1:44 PM
To: Xerte list
Subject: [Xerte] Re: Text Entry scroll = auto 
Yes, thanks Paul.
I was suckered by inspect showing "height" and "height" going blue in the code window.

So now if there is no text in the field to begin with, the box doesn't collapse, but the text is some tiny default, even if I set it explicitly in the icon.
This is quite the PITA for a simple text entry. I forget Flash really does suck in some regards.Date: Thu, 17 Feb 2011 13:30:32 -0800
From: Paul.Swanson at harlandfs.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Re: Text Entry scroll = autoShouldn’t it be _height? From Flash help:_height Property public _height : Number Player version: Flash Player 6 The height of the text field in pixels. ExampleThe following code example sets the height and width of a text field: my_txt._width = 200;my_txt._height = 200; You might also try applying a CSS style that sets the font-size.  From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, February 17, 2011 1:13 PM
To: Xerte list
Subject: [Xerte] Re: Text Entry scroll = auto Trying the text icon.

icontextentry.txt.height = 20;
icontextentry.txt.background = true;
icontextentry.txt.type = 'input';
icontextentry.txt.selectable = true;
setFocus(icontextentry.txt);

Unless I have text in the icon to begin with, it collapses down to about 2 pixels high.
(tried textHeight too).From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 17 Feb 2011 19:54:51 +0000
Subject: [Xerte] Re: Text Entry scroll = autoI dont think the text entries are set up to scroll: I use a normal text icon in such situations and set events on iconID.txt.onChanged From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]
Sent: 17 February 2011 13:42
To: Xerte list
Subject: [Xerte] Text Entry scroll = auto
Doesn't seem to want to scroll when set to auto.

Simple example
0,0,100,100, match this, scrolling=auto, border=1, erase=1, exit=0 
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. 
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110218/c1602a75/attachment-0001.html>


More information about the Xerte mailing list