User Tools

Site Tools


setalerts_alert_keystrokes_for_list_and_locator_controls_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== SetAlerts (alert keystrokes for list and locator controls) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetAlerts, VIRTUAL

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

setalerts_alert_keystrokes_for_list_and_locator_controls_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1