Apple Newton Utilities Guía de usuario Pagina 371

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 942
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 370
CHAPTER 9
Recognition
Using the Recognition System 9-29
The vNoSpaces ag must appear in an evaluate slot named textFlags that you
create in the view. The
vSingleUnit ag appears in the view’s viewFlags slot,
as usual.
Forcing Capitalization 9
The vCapsRequired flag directs the system to capitalize the first letter of each
word returned by the recognizer before displaying the text in the view.
Setting the
vCapsRequired ag does not affect the recognizer’s behavior—it
affects post-processing performed on the recognizer’s output before it is returned to
the view.
Justifying to Width of Parent View 9
Setting the vWidthIsParentWidth ag for a view based on the
clParagraphView class causes the view to extend its right boundary to match
that of its parent automatically.
The
vWidthIsParentWidth ag must appear in an evaluate slot named
textFlags that you create in the view.
Like other ags set in the
textFlags slot, the vWidthIsParentWidth ag
does not affect the recognizer’s behavior—it affects post-processing performed on
the recognizer’s output before it is returned to the view.
Restricting Input to Single Lines or Single Words 9
Including the oneLineOnly ag in your view’s viewJustify slot causes the
view to accept only a single line of text input, with no word wrapping provided.
You can restrict input to a single word by including the
oneWordOnly ag in the
view’s
viewJustify slot. If this ag is set, the view replaces the currently
displayed word with the new one when the user writes in the view. You can also
restrict input to single characters by using this ag in conjunction with a custom
dictionary of single letters.
For more information on these ags, see their descriptions in Chapter 3, “Views.
For information on the use of custom dictionaries, see “Using Custom
Dictionaries” beginning on page 10-24.
Validating Clipboard and Keyboard Input 9
It is possible for the user to enter invalid values in elds by dragging text from the
Clipboard or by using a keyboard to type in the eld. For example, setting the
vPhoneField flag normally restricts input to numeric values in phone number
formats; however, the user can still enter invalid values in such a eld by dragging
Vista de pagina 370
1 2 ... 366 367 368 369 370 371 372 373 374 375 376 ... 941 942

Comentarios a estos manuales

Sin comentarios