• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part I: Foundation > Keyboard Access and Modifying Onscreen Text

Chapter 10. Keyboard Access and Modifying Onscreen Text

In the preceding chapter, we explored how to manipulate strings. However, each example used either a literal (hard-wired) string or a variable that we assumed had been previously populated. This certainly is a common technique—perhaps you fill an array with several words and then extract just one at a time. Quite often, however, you’ll want to let users supply the string data (perhaps letting them type in their name and password). There are actually a lot of subtleties to how users can use their mouse and keyboard to input text. In addition, you have nearly infinite possibilities as to how you present that text onscreen (regardless of whether it’s taken from the user). In this chapter, you’ll learn both how to gather text the user inputs and how to display any text onscreen.

In this chapter, you will:

  • Use the TextField object to manipulate text fields the same way you can with the Properties panel, but instead using script.

  • Define format characteristics for displayed text using the TextFormat object.

  • Use the Key object to determine which keys are being pressed.

  • Ascertain and set the selected area of a text entry field.

  • Use “listeners” to respond (by running a script) any time a specified event occurs.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint