Progress
ADM 2 Guide
SmartContainers and Their Contents
All SmartObjects that a SmartContainer contains are linked to it by a Container SmartLink. (For more information, see SmartLinks.") Figure 2–1 illustrates this relationship.
Figure 2–1: SmartContainer and Contained SmartObject
![]()
The term SmartContainer suggests a visual relationship similar to that of a frame and the widgets inside that frame. This kind of relationship is typical between a SmartContainer and the object it contains. However, the container relationship extends beyond this—especially when a SmartWindow contains another SmartWindow. In this situation, although the two SmartWindows appear separately on your screen, the ADM parents one SmartWindow to the other. As a result, if you minimize or destroy the parent window, you also minimize or destroy the contained window.
The container relationship is, therefore, a logical relationship and not necessarily a visual relationship. Another example is a SmartContainer that contains a SmartDataObject. The SmartDataObject has no visualization, so at run time, you cannot see a visual relationship. Nevertheless, the SmartDataObject is contained in the SmartContainer.
At design time, when you insert SmartObject instances into a SmartContainer, the AppBuilder generates an adm–create–objects procedure in the SmartContainer. This procedure runs persistent instances of the SmartObjects contained in the SmartContainer and performs other initializations for those SmartObjects, such as setting their relative position, parenting them correctly to the SmartContainer, and adding links.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |