<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div class="ecxSection1"><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> AND the position of the caret,</span></p><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"><br></span></p><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">If you have the TF ID, can't you just get a charcount on button click?</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Or get the text, concatenate the special and reset it?</span></p><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> <br></span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="ecxMsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> Friday, January 08, 2010 3:51 PM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] Inserting Special Characters</span></p>
</div>
</div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"> </p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Maybe
a global func that holds the tf id of the last tf with focus?<br>
<br>
<pseudo><br>
if object with focus=TF {<br>
last_active = TF ID<br>
}<br>
</pseudo><br>
<br>
<br>
> Date: Fri, 8 Jan 2010 15:27:12 +0000<br>
> From: Julian.Tenney@nottingham.ac.uk<br>
> To: xerte@lists.nottingham.ac.uk<br>
> Subject: [Xerte] Inserting Special Characters<br>
> <br>
> I want to have anumber of buttons insert special characters into a<br>
> textfield. How can I get the textfield that is currently selected when I<br>
> click a button?<br>
> <br>
> If I debug (Selection.getFocus()) after clicking the button, I get - of<br>
> course - the button, as I just selected it by clicking it. How can I<br>
> know the textField that has / did have the caret in it, and the position<br>
> of the caret?<br>
> <br>
> Previously I've done this by having the textfield update some variables<br>
> onChange, but this isn't an option in this case.<br>
> <br>
> J<br>
> _______________________________________________<br>
> Xerte mailing list<br>
> Xerte@lists.nottingham.ac.uk<br>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte</span></p>
<div class="ecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">
<hr size="2" width="100%" align="center">
</span></div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Hotmail: Trusted email with Microsoft’s
powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/196390706/direct/01/">Sign up
now.</a></span></p>
</div>                                            <br /><hr />Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/196390706/direct/01/' target='_new'>Sign up now.</a></body>
</html>