[Xerte] Determining line wrap

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Jan 28 12:09:33 GMT 2010


Keep adding words and test height?

 

There is getTextExtent?

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, January 28, 2010 11:29 AM
To: Xerte list
Subject: RE: [Xerte] Determining line wrap

 


Fixed width text box
Variable length string
Font face/size may change

Any way to determine where the line wrap(s) occurred?

________________________________

Subject: RE: [Xerte] Determining line wrap
Date: Thu, 28 Jan 2010 10:10:59 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

I'm missing something - what are you trying to do again?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, January 28, 2010 10:08 AM
To: Xerte list
Subject: RE: [Xerte] Determining line wrap

 


Yes, I can chain the radios together.
But I will need to know when a line wraps to implement.
 

________________________________

Subject: RE: [Xerte] Determining line wrap
Date: Thu, 28 Jan 2010 07:49:34 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

use _ytile + 10 in the y property of the radio - that will place it 10
pixels below the last one,

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Dave Burnett
Sent: Wed 27/01/2010 23:21
To: Xerte list
Subject: [Xerte] Determining line wrap


Let's say I have question with 4 distractors I'm going to assemble into
a single string and display via variable:

What is the value of Pi?

O  3, give or take.
O  It is a transcendental value so I can not give you the full value
O  3.1412
O  All of the above

Now, 2) is going to wrap based on the text box space I have.
I will need to chain reposition radios 3 & 4

Short of using a monospace font, can I determine where the line will
wrap?

I can do this in Authorware using a bug in the Wincontrol.u32







________________________________

Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up
now. <http://clk.atdmt.com/GBL/go/196390709/direct/01/>  

 

________________________________

Hotmail: Powerful Free email with security by Microsoft. Get it now.
<http://clk.atdmt.com/GBL/go/196390710/direct/01/> 

 

________________________________

Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up
now. <http://clk.atdmt.com/GBL/go/196390709/direct/01/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100128/3a9240dd/attachment.html


More information about the Xerte mailing list