<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'>
I am setting up a text entry on a text icon:<div><br></div><div>teicon.txt.autoSize = 0;</div><div>teicon.txt._height = 26;</div><div>teicon.txt._width = 263;</div><div>//teicon.txt.border = 1;</div><div>teicon.txt.type = "input";</div><div>teicon.txt.selectable = 1;</div><div>teicon.txt.multiline = 0;</div><div>myTF = new TextFormat();</div><div>//myTF.font = "Arial";</div><div>myTF.font = "Arial Bold";</div><div>myTF.size = 16;</div><div>teicon.txt.setNewTextFormat(myTF);</div><div>setFocus(teicon.txt);</div><div><span style="font-size: 10pt;">teicon.txt.text = "";</span></div><div><br></div><div><br></div><div>When this executes, the cursor appears as expected at index 0 and the user starts typing.</div><div><br></div><div>A "show answers" routine may pull the focus from that while text is being input (the cursor is in the box).</div><div><br></div><div>So I store the existing text and clear the box </div><div><br></div><div><div>prevtext = teicon.txt.text;</div><div>teicon.txt.text = "";</div></div><div><br></div><div>Then the user comes back from the subroutine, I set it back up:</div><div><br></div><div><span style="font-size: 10pt;">teicon.txt.text = prevtext;</span></div><div><div>setFocus(teicon);</div><div><span style="font-size: 10pt;">//Selection.setFocus(teicon); //tried this as well</span></div></div><div><br></div><div>Which fills the text entry back up, and even accepts keys if I start typing.</div><div>But no cursor.</div><div>I need to click the mouse back in the box to get a cursor there again.</div><div><br></div><div>Setting the focus puts the cursor there initially, but not the second time around.</div><div>??</div><div>  <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;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{font-size:8.0pt;font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxBalloonTextChar
{font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxEmailStyle20
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

--></style></div>                                          </div></body>
</html>