RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRichEditStrikeOut.UpdateTarget Method

Sets the Checked property to reflect whether the target control's text includes a strikeout line.

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. 

Target is the currently active object when the action fires. 

UpdateTarget checks whether Target is a rich edit control with the strikeout font attribute on its selected text. If the selected text is struck out, UpdateTarget sets the Checked property to true, otherwise it sets Checked to false. 

 

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