RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TNextTab Class

TNextTab moves a tabbed control to its next page.

Pascal
TNextTab = class(TTabAction);
C++
class TNextTab : public TTabAction;

ExtActns

Add TNextTab to an action list to provide the response to the "Next" and "Finish" buttons or menu items in a tabbed dialog. Controls such as menu items and tool buttons linked to this action cause a different response, depending on the value of the Wrap property and on whether the target control is on the last page: 

If the target page control is not on the last page, or if Wrap is true, client controls cause this action to change the current page to the next page. (When Wrap is true, the next page after the last tab is the first tabbed page). 

If Wrap is false and the target page control is on the last page, this action changes the caption of client controls (for example, from "Next" to "Finish") and, when fired, responds by generating an OnFinish event. 

Before you can use TNextTab, you must assign a target page control or tab control as the value of the TabControl property. Once the target control is assigned, TNextTab automatically disables itself if the target control is not enabled. 

 

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