Consultor Eletrônico



Kbase P68407: Dynamics. How to Select page in a Tab Folder.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/02/2004
Status: Unverified

GOAL:

Dynamics. How to Select page in a Tab Folder.

FACT(s) (Environment):

Dynamics 2.1A

FIX:

The selectPage Procedure that changes the currently selected page. If the previous current page is not page 0 (the background page that is always visible), then hideObject is run in all the objects on the CurrentPage. Then the CurrentPage is changed to the new page number of piPageNum, and the changePage procedure is run to view and, if necessary, create the objects on the new page.

This procedure switches from one page on a single frame to another page so that objects on the previous page are hidden and objects on the new page are viewed. If the new page is a separate SmartWindow, in most cases you should use the viewPage procedure to view the objects on the new page without hiding the current page.

The selectPage procedure runs when a user presses a tab on the SmartFolder. It can also run from application code when some other mechanism is used to change pages.

Example:

/* This trigger code allows the user to select a page by typing the number into a field. */

ON LEAVE OF PageNum
DO:
RUN SelectPage(INTEGER(PageNum:SCREEN-VALUE)).
END.