| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ToolbarListBoxClass > ToolbarListboxClass Methods >====== TakeEvent (convert toolbar events:ToolbarListboxClass ) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[displaybuttons enable appropriate toolbar buttons toolbarlistboxclass .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[taketoolbar assume contol of the toolbar .htm|{{btn_next_n.gif|Next page}}]] | | || **TakeEvent( **[ //vcr //]//, window manager //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **TakeEvent** | Handles toolbar events for the ToolbarListboxClass object. | | //vcr// | An integer variable to receive the control number of the accepted vcr button. This lets the TakeEvent method specify an appropriate subsequent action. If omitted, the ToolbarListboxClass object does no "post processing" navigation. | | //windowmanager// | The label of the ToolbarListboxClass object's WindowManager object. See //Window Manager// for more information. | The **TakeEvent **method handles toolbar events for the ToolbarListboxClass object. The //vcr //parameter lets the TakeEvent method specify an appropriate subsequent or secondary action. For example, the ToolbarListboxClass.TakeEvent method, may interpret a 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. **Implementation:** The ToolbarClass.TakeEvent method calls the TakeEvent method for the active ToolbarTarget object. The ToolbarClass.SetTarget method sets the active ToolbarTarget object. **Example:** **ToolbarClass.TakeEvent PROCEDURE(<;*LONG VCR>,WindowManager WM)** **  CODE** ** ASSERT(~SELF.List &= NULL)** ** IF RECORDS(SELF.List)** **  SELF.List.Item.TakeEvent(VCR,WM)** ** END** **See Also:** [[settarget sets the active target .htm|ToolbarClass.SetTarget]], [[takeevent process toolbar event toolbarclass .htm|ToolbarClass.TakeEvent]]