RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBrowseForFolder.ExecuteTarget Method

Executes the associated dialog and generates an OnAccept or OnCancel event.

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

Do not call the ExecuteTarget method. This method is called automatically when the action fires in response to a user action (for example, when the user selects a menu item or presses a tool button that is linked to this action). 

Target is the currently active object when the action fires. 

ExecuteTarget ignores the Target parameter and  

 

  1. Generates a BeforeExecute event, so that the application can initialize the associated dialog according to current conditions. 

  2. Calls the Execute method of the dialog.  

  3. Generates an OnAccept event or an OnCancel event, depending on the value returned by the Execute method. You can write code to make use of the results from executing the dialog in these event handlers.

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!