Progress
ADM 2 Guide


Instantiation

At run-time, the top-level application procedure (a SmartContainer; typically, a SmartWindow) instantiates the other SmartObjects that it contains. Instantiation has several steps:

  1. The top-level SmartContainer runs the master for each SmartObject persistently to create an instance of that SmartObject.
  2. It sets instance properties in each SmartObject and sets the position of each SmartObject relative to the SmartContainer.
  3. It tells the SmartObject how it relates to the other objects in the SmartContainer.
  4. It instructs the SmartObject to initialize and display itself. This is done in the generated procedure adm–create–objects.

Note that the SmartContainer does not directly dictate the contents of SmartObjects when it tells them to initialize themselves. Each SmartObject responds differently to this request according to its type. The SmartContainer does not need to be aware of this; it sends exactly the same request to all of the SmartObjects and allows them to handle the details themselves.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095