[Xerte] Text entry colour

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Sep 30 12:55:26 BST 2008


Not so concise, but:

rs.setNewTextFormat(new TextFormat('Verdana', 12, 0xFF0000, true));

using the first method with a perpetual interaction will work. I should
add those properties to the icon itself, because you might not want
perpetual interactions for some good reason

I would add

inputFont
inputColour
inputWeight
inputSize

I think - any others?

 
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Langewis,
E.A. (Elly)
Sent: 30 September 2008 12:39
To: Xerte discussion list
Subject: RE: [Xerte] Text entry colour

Is there a similar way to make it bold?

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Julian Tenney
Sent: Tue 30/09/2008 1:14 PM
To: Xerte discussion list
Subject: RE: [Xerte] Text entry colour



Alternatively you can set STYLES.inputColour = '#FFFF00'; and change the
values as you set more textEntries up. Notice the colour is formatted
differently in the two approaches.



-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 30 September 2008 12:09
To: Xerte discussion list
Subject: RE: [Xerte] Text entry colour

- Give the textEntry an rs property myTxt
- make the interaction perpetual
- in a script afterwards set myTxt.textColor = 0xFF0000;



_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerteIs there a similar
way to make it bold?




More information about the Xerte mailing list