| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > BrowseClass > BrowseClass Methods >====== SetAlerts (alert keystrokes for list and locator controls) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[scrollpage scroll up or down one page .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setlocatorfield set sort free element to passed field .htm|{{btn_next_n.gif|Next page}}]] | | || **SetAlerts, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} The **SetAlerts **method alerts standard keystrokes for the browse's list control and for any associated locator controls. The BrowseClass.TakeKey method processes the alerted keystrokes. **Implementation:** The BrowseClass.SetAlerts method alerts the mouse DOUBLE-CLICK, the INSERT, DELETE and CTRL+ENTER keys for the browse's list control and calls the LocaorClass.SetAlerts method for each associated locator control. Corresponding keycode EQUATEs are declared in KEYCODES.CLW. The BrowseClass.SetAlerts method also sets up a popup menu for the browse list that mimics the behavior of any control buttons (insert, change, delete, select). **Example:** **PrepareStateBrowse ROUTINE                 !Setup the BrowseClass object:** ** BrowseState.Init(?StateList,      |       ! identify its LIST control,** **                  StateQ.Position, |       ! its VIEW position string,** **                  StateView,       |       ! its source/target VIEW,** **                  StateQ,          |       ! the LIST's source QUEUE,** **                  Relate:State)            ! and primary file RelationManager** ** BrowseState.SetAlerts                     !alert LIST and locator keystrokes** **See Also:     **[[takekey process an alerted keystroke browseclass .htm|TakeKey]]