OnPageSelChange Event (ATab)

Occurs when the currently selected page is about to change.

Syntax

Object.OnPageSelChange ( PageCurrent, PageNew, pbCancel )

The OnPageSelChange property syntax has the following parts:
 

Name]

Type

Description

Object

ATab

ATab control

PageCurrent

Val ATabPage

Current page

PageNew

Val ATabPage

New active page

pbCancel

Var Bool

Set to True to cancel the active page change

Comments

ActivatePage will cause the  OnPageSelChange event to be invoked if the activated page is different than the current active page. The event is also called when the user clicks on the page tab and activate a different page.

Example

The following example OnPageSelChange, save current page changes before next page is selected:

Procedure tab.OnPageSelChange(PageCurrent, PageNew, bCancel): Void Public

{

  SaveCurrentPage(pageCurrent.Name)

}

Applies to

ATab

See Also

ATab.ActivatePage, ATab.ActivePage, ATab.ActivePageTabBackColor