RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPreviousTab.ExecuteTarget Method

Changes the selected page in the target control to the previous one.

Pascal
procedure ExecuteTarget(Target: TObject); override;
C++
virtual __fastcall ExecuteTarget(TObject * Target);

ExecuteTarget causes the action to perform its default response based on the state of the target tab control. 

Target is the currently active object when the action fires. TPreviousTab ignores this parameter and uses the TabControl property to identify the target control. 

ExecuteTarget  

 

  1. Generates a BeforeTabChange event. 

  2. Moves the control identified by TabControl to the previous page. If TabControl is on the first page and the Wrap property is true, this moves to the last page. If Wrap is false, ExecuteTarget does not change the page when the tab control is on the first page. Note that the SkipHiddenTabs property controls whether hidden pages are considered when locating the previous page. 

  3. Generates an AfterTabChange event.

 

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