Vcl.ComCtrls.TCustomTabControl.OnChange
Delphi
property OnChange: TNotifyEvent read FOnChange write FOnChange;
C++
__property System::Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTabControl |
Description
Occurs after a new tab is selected.
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 tab.
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 ActivePage.
See Also
Code Examples
- PageControlChange (Delphi)
- TabControlChange (Delphi)
- TabSheetPageControl (Delphi)
- PageControlChange (C++)
- TabControlChange (C++)
- TabSheetPageControl (C++)