ActivePage
This page frame property tells you which page is currently on top. Unlike similar properties for grids, this one lets you change things as well as find out what's going on.
Usage |
pgfPageFrame.ActivePage = nWhichPage nWhichPage = pgfPageFrame.ActivePage |
If you create an Assign method for ActivePage, it doesn't fire when you change pages by clicking on the new page. It does fire when you change pages using the keyboard or programmatically. |
Example |
* Find the active page in a page frame. * Assume this is a page frame method. LOCAL nCurOrder, oCurPage, oActivePage nCurOrder = This.ActivePage FOR EACH oPage IN This.Pages IF oPage.PageOrder = nCurOrder oActivePage = oPage EXIT ENDIF ENDFOR * Now, act on oActivePage to manipulate the Active Page |
See Also |