Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.

Back

B2005 - How do I stop text in a text entry field from being prehighlighted?

by - Joseph Ganci


I'm using PresetEntry to preset text to go into a TextEntry response.  When I run the program, the preset text looks like it's already selected:  it's got a black box around it.  I would like it to be deselected (with no black box around the text).  Does anyone out there know how to do this?

This is a real problem because since the text is already highlighted, if the user hits a key, like the letter "a", it will replace the text that's already in the field.  Here's a way around it.  In your script, after you set up your preset entry, force a right arrow:

     PresetEntry := "MyText"
     PressKey("RightArrow")

This forces the cursor to move to the end of the preselected text, thereby deselecting it. 

There are 0 reviews
Add your review
Back