Navigation: ABC Library Reference > ToolbarClass > ToolbarClass Methods >====== TakeEvent (process toolbar event:ToolbarClass) ====== | |
TakeEvent( [ vcr ], window manager ), VIRTUAL
TakeEvent | Processes toolbar events for the active toolbar target. |
vcr | An integer variable to receive the control number of the accepted VCR navigation button. This lets the TakeEvent method specify an appropriate subsequent action. If omitted, the ToolbarTarget object does no “post processing” navigation. |
windowmanager | The label of the ToolbarTarget object's WindowManager object. See Window Manager for more information. |
The TakeEvent method processes toolbar events for the active toolbar target (ToolbarTarget object).
The vcr parameter lets the TakeEvent method specify an appropriate subsequent or secondary action. For example, the ToolbarUpdateClass.TakeEvent method (for a FORM), may interpret a vcr scroll down as “save and then scroll.” The method takes the necessary action to save the item and accomplishes the secondary scroll action by setting the vcr parameter.
The SetTarget method sets the active toolbar target.
Implementation:
The WindowManager.TakeEvent method calls the TakeEvent method. The TakeEvent method calls the ToolbarTarget.TakeEvent method for the active toolbar target.
Example:
MyWindowManager.TakeAccepted PROCEDURE
CODE
IF ~SELF.Toolbar &= NULL
SELF.Toolbar.TakeEvent(SELF.VCRRequest,SELF)
END
!procedure code
See Also: SetTarget, WindowManager.TakeEvent