[Xerte] Re: Text Entry scroll = auto
Paul Swanson
Paul.Swanson at harlandfs.com
Thu Feb 17 22:03:37 GMT 2011
icontextentryFormat = 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 = auto
Shouldn'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.
Example
The 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 = auto
I 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110217/204068f7/attachment-0001.html>
More information about the Xerte
mailing list