Progress
ADM 2 Reference
viewObject (smart.p)
Logically
“
views”
the current object, setting its ObjectHidden property to false.Parameters: NoneReturns: Nothing (procedure)Notes:
- The ADM supports a logical concept of
“
Viewing”
, which can be applied to all objects regardless of whether they have a visualization; that is why this procedure is found insmart.p
.- When an object is
“
viewed”
its links are typically activated (the linkState property is set to"
active"
); when“
hidden”
they are sometimes deactivated, depending on the link type. If an object has an actual visualization, the version of viewObject invisual.p
will view it.- When a SmartContainer is viewed, it is not necessary for all of the objects it contains to be individually viewed, because they are not explicitly hidden when the container is hidden (see hideObject). For this reason, viewObject, when executed for a SmartContainer, will set the property ContainerHidden to FALSE in each contained SmartObject, without actually running viewObject in each object. The setContainerHidden function will, in turn, set the ObjectHidden property to FLASE so that it can be queried successfully. Not running hideObject and viewObject in each individual SmartObject improves performance when SmartObjects are being paged (alternately hidden and viewed), and can eliminate problems with
“f
lashing”
of visual objects or problems restoring proper frame order when objects are hidden and viewed.Examples:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |