PA_GetPageChange


version 2004.1


PA_GetPageChange (params; *pageFrom; *pageTo)

Parameter Type Description
params PA_PluginParameters Parameters received in PluginMain
*pageFrom short Closing page number
*pageTo short Opening page number

Description

The command PA_GetPageChange returns both the number of the page that is being closed and opened. This command must be called when PA_GetAreaEvent returns eAE_PageChange . This event indicates that the current page is being changed.

The returned values must be compared to the plug-in area page number (returned by PA_GetPluginProperties ) and to the current page number (returned by PA_GetCurrentPage ) to know if the page in which the area is located is being closed or opened.

When the form is changing page to or from your area page:

• If PA_GetCurrentPage() == *pageTo , the page is being opened. You should take this opportunity to install your native controls.

• If PA_GetCurrentPage() == *pageFrom , the page is being closed. You should take this opportunity to remove your native controls.

params

is the PA_PluginParameters the plug-in received in its PluginMain routine.

See Also

PA_GetCurrentPage , PA_GetPluginProperties .