Dynamic Text

This illustrates how to include dynamic/generated information within a document -- for example, information from the current user configuration or about the current book. Each "readonly" form object evaluates its associated variable or method whenever it is displayed. For a more complicated example, see soupedit.htm: a soup editor.

User Configuration Information

Name

Address

Company

City, etc.

Country

Area Code

Home Phone

Office Phone

Fax Phone

Mail Account

Mail Network

See the NTK docs for other variables. For non-string (or rich text) values, you may want to fix the getValue method to return other strings, e.g., true, nil, flattened array or frame, etc.

A few undocumented(?) ones:

Beep Sound

Current Modem

Locale

Sound Volume

Screen Orientation

Book Information

Some public info about the book itself.

Title

ISBN

Base

Current Page#

Total Pages#

Short Title

Author

Copyright

Publisher

Publication Date

Object Information

About the specific object (field) -- not too useful (except possibly for debugging?):

viewFlags

viewLineSpacing

viewClass

Height

Label

Name

Action


This document (in all its formats) is © 1997-2007. Steve Weyer. All Rights Reserved Worldwide. You are free to incorporate this into your own documents, but I would appreciate an acknowledgement of Newt's Cape and the example.

Last updated: Dec 2000