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

Selection Object

The Selection object enables you to control selectable text fields. Input Text fields are automatically selectable, but you can also set the Selectable option for Dynamic Text fields by using the Properties panel (see Figure 10.6) or by setting the field’s selectable property to true. You can control selectable fields in several ways. First, you can set or ascertain which field currently has focus. Only one field can be actively selected at a time, and that field is said to “have focus.” In addition to setting or finding out which field has focus, you can also specify (or find out) which portion of that field currently is selected. The most obvious application for this is a situation in which you want to help a user fill out a form. Instead of making the user fill in a blank field, you can preselect a portion so that typing automatically replaces the selected text. Maybe the field says “Enter Name” and instead of making the user select the text (so the user can replace it with his name), you can select it for him.

Figure 10.6. You can turn a Dynamic Text field’s selectable properties on or off by using the Properties panel (or by writing a script).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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