<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Paul!<div><br></div><div>Yes, I've tried all the usual concatenations plus a few variations I found in the archives.</div><div><span class="ecxSpellE" style="font-size: 10pt;"><span style="font-size: 10pt; font-family: Tahoma, sans-serif;">setFocus</span></span><span style="font-size: 10pt; font-family: Tahoma, sans-serif;">(teicon.txt);</span> was what I had in there originally.</div><div>No joy.</div><div><br></div><div> <br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: Paul.Swanson@harlandfs.com<br>To: xerte@lists.nottingham.ac.uk<br>Date: Tue, 26 Feb 2013 19:35:41 +0000<br>Subject: [Xerte] Re: desktop - text entry cursor being shy<br><br>





<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;text-underline:single;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;text-underline:single;}
.ExternalClass p
{font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsoacetate, .ExternalClass li.ecxecxmsoacetate, .ExternalClass div.ecxecxmsoacetate
{font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxballoontextchar
{;}
.ExternalClass span.ecxecxemailstyle20
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;text-underline:single;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;text-underline:single;}
.ExternalClass p.ecxecxmsoacetate1, .ExternalClass li.ecxecxmsoacetate1, .ExternalClass div.ecxecxmsoacetate1
{font-size:8.0pt;font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxecxballoontextchar1
{font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxecxemailstyle201
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{font-size:10.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxEmailStyle32
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass span.ecxSpellE
{;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

--></style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I notice that when you first get to the page, you’ve got:</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="ecxMsoNormal"><span class="ecxSpellE"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">setFocus</span></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">(teicon.txt);</span></p>
<p class="ecxMsoNormal"><span class="ecxSpellE"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.text</span></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
 = "";</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">But on the return you have:</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="ecxMsoNormal"><span class="ecxSpellE"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.text</span></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
 = <span class="ecxSpellE">prevtext</span>;</span></p>
<p class="ecxMsoNormal"><span class="ecxSpellE"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">setFocus</span></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">(<span class="ecxSpellE">teicon</span>);</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Should it be
<span class="ecxSpellE">setFocus</span>(teicon</span><b style=""><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red">.txt</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">);
 ?</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<div>
<p class="ecxMsoNormal"><b style=""><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#365F91">Paul Swanson</span></b></p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Internal Business Systems Analyst</span></p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Internal Business Intelligence</span></p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Harland Financial Solutions</span></p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">(800) 274-7280 Ext. 2462</span></p>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Paul.Swanson@harlandfs.com</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"></span></p>
</div>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> xerte-bounces@lists.nottingham.ac.uk
 [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> Tuesday, February 26, 2013 10:22 AM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] desktop - text entry cursor being shy</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I am setting up a text entry on a text icon:</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.autoSize = 0;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt._height = 26;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt._width = 263;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">//teicon.txt.border = 1;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.type = "input";</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.selectable = 1;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.multiline = 0;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">myTF = new TextFormat();</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">//myTF.font = "Arial";</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">myTF.font = "Arial Bold";</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">myTF.size = 16;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.setNewTextFormat(myTF);</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">setFocus(teicon.txt);</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.text = "";</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">When this executes, the cursor appears as expected at index 0 and the user starts typing.</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">A "show answers" routine may pull the focus from that while text is being input (the cursor is in the box).</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">So I store the existing text and clear the box </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">prevtext = teicon.txt.text;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.text = "";</span></p>
</div>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Then the user comes back from the subroutine, I set it back up:</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">teicon.txt.text = prevtext;</span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">setFocus(teicon);</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">//Selection.setFocus(teicon); //tried this as well</span></p>
</div>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Which fills the text entry back up, and even accepts keys if I start typing.</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">But no cursor.</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I need to click the mouse back in the box to get a cursor there again.</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Setting the focus puts the cursor there initially, but not the second time around.</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">??</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">  </span></p>
</div>
</div>
<p class="ecxMsoNormal" style=""><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br style="">
<br style="">
</span></p>
</div>

<br><br>
<br>

<br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</div></div>                                      </div></body>
</html>