RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TNextTab.UpdateTarget Method

Updates the action to reflect current conditions.

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

Do not call the UpdateTarget method. This method is called automatically when the application is idle so that actions can update themselves according to current conditions. 

In TNextTab, UpdateTarget first checks whether the TabControl property specifies an enabled control that can act as a target. If not, UpdateTarget sets the Enabled property to false. 

If the target control is enabled, UpdateTarget sets the Enabled property to true and checks whether the target control is on its last page. If so, (and if Wrap is false) it changes the Caption property to the value of LastTabCaption. If not, it restores the Caption property to its original value. 

 

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