Progress
ADM 2 Reference
changePage (containr.p)
Views (and creates if necessary) objects on a newly selected page in a Container when CurrentPage is reset.
Parameters: NoneReturns: Nothing (procedure)Notes:
- The changePage procedure is normally used internally, called from either selectPage or viewPage. It can be customized to perform some application-specific task each time a page is changed, but developers must note that if it is called from selectPage (the normal case for switching pages within a Container), the previous page will already have been hidden.
- The changePage procedure expects the CurrentPage property to have been set to the new page before it is called.
- The changePage procedure does not hide the previously selected page. This will be done before it is called from selectPage. If it is called from viewPage, the previous page is not hidden first. This would be the case if the new page is a SmartWindow to be viewed in addition to the current page in its container.
- The changePage procedure first publishes changeFolderPage to let the associated SmartFolder visualization, if any, know about the page change.
- If the new page is not page zero (which is always initialized at startup), and the objects on the page have not yet been created, changePage runs createObjects to create all the SmartObjects on the new page. If the SmartContainer itself has been initialized, it also publishes
“
initializeObject”
to initialize the new objects, and publishes“
viewObject”
to view them.Examples:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |