RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageControl.OnChange Event

Occurs after a new tab is selected.

Pascal
property OnChange: TNotifyEvent;
C++
__property TNotifyEvent OnChange;

Write an OnChange event handler to take specific action immediately after the selected tab changes. Use the TabIndex property to determine which tab is now selected. This is the opportunity to make any changes to the control that reflect the new state implied by the selected tag. 

Before the value of TabIndex changes, an OnChanging event occurs.

Note: The event is not called if you change the active page in code, for example, by setting the value of TPageControl. ActivePage.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!