PA_GetPageChange

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2004.1


PA_GetPageChange (params; *pageFrom; *pageTo)

ParameterTypeDescription
paramsPA_PluginParametersParameters received in PluginMain
*pageFromshortClosing page number
*pageToshortOpening 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.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next