If you need to show the Event() id, in debugview, this procedure can translate it to the Equate name.
map
EventDesc Procedure(Long pEvent),String
End
EventDesc PROCEDURE (Long pEvent) ! Declare Procedure
Loc:RVString String(40)
CODE
!(Long pEvent),String
Case pEvent
OF EVENT:Accepted
Loc:RVString = 'EVENT:Accepted'
OF EVENT:NewSelection
Loc:RVString = 'EVENT:NewSelection'
OF EVENT:ScrollUp
Loc:RVString = 'EVENT:ScrollUp'
OF EVENT:ScrollDown
Loc:RVString = 'EVENT:ScrollDown'
OF EVENT:PageUp
Loc:RVString = 'EVENT:PageUp'
OF EVENT:PageDown
Loc:RVString = 'EVENT:PageDown'
OF EVENT:ScrollTop
Loc:RVString = 'EVENT:ScrollTop'
OF EVENT:ScrollBottom
Loc:RVString = 'EVENT:ScrollBottom'
OF EVENT:Locate
Loc:RVString = 'EVENT:Locate'
OF EVENT:MouseDown
Loc:RVString = 'EVENT:MouseDown'
OF EVENT:MouseUp
Loc:RVString = 'EVENT:MouseUp'
OF EVENT:MouseIn
Loc:RVString = 'EVENT:MouseIn'
OF EVENT:MouseOut
Loc:RVString = 'EVENT:MouseOut'
OF EVENT:MouseMove
Loc:RVString = 'EVENT:MouseMove'
OF EVENT:VBXevent
Loc:RVString = 'EVENT:VBXevent'
OF EVENT:AlertKey
Loc:RVString = 'EVENT:AlertKey'
OF EVENT:PreAlertKey
Loc:RVString = 'EVENT:PreAlertKey'
OF EVENT:Dragging
Loc:RVString = 'EVENT:Dragging'
OF EVENT:Drag
Loc:RVString = 'EVENT:Drag'
OF EVENT:Drop
Loc:RVString = 'EVENT:Drop'
OF EVENT:ScrollDrag
Loc:RVString = 'EVENT:ScrollDrag'
OF EVENT:TabChanging
Loc:RVString = 'EVENT:TabChanging'
OF EVENT:Expanding
Loc:RVString = 'EVENT:Expanding'
OF EVENT:Contracting
Loc:RVString = 'EVENT:Contracting'
OF EVENT:Expanded
Loc:RVString = 'EVENT:Expanded'
OF EVENT:Contracted
Loc:RVString = 'EVENT:Contracted'
OF EVENT:Rejected
Loc:RVString = 'EVENT:Rejected'
OF EVENT:DroppingDown
Loc:RVString = 'EVENT:DroppingDown'
OF EVENT:ScrollTrack
Loc:RVString = 'EVENT:ScrollTrack'
OF EVENT:DroppingDown
Loc:RVString = 'EVENT:DroppingDown'
OF EVENT:ColumnResize
Loc:RVString = 'EVENT:ColumnResize'
OF EVENT:Selected
Loc:RVString = 'EVENT:Selected'
OF EVENT:Selecting
Loc:RVString = 'EVENT:Selecting'
OF EVENT:CloseWindow
Loc:RVString = 'EVENT:CloseWindow'
OF EVENT:CloseDown
Loc:RVString = 'EVENT:CloseDown'
OF EVENT:OpenWindow
Loc:RVString = 'EVENT:OpenWindow'
OF EVENT:OpenFailed
Loc:RVString = 'EVENT:OpenFailed'
OF EVENT:LoseFocus
Loc:RVString = 'EVENT:LoseFocus'
OF EVENT:GainFocus
Loc:RVString = 'EVENT:GainFocus'
OF EVENT:Suspend
Loc:RVString = 'EVENT:Suspend'
OF EVENT:GainFocus
Loc:RVString = 'EVENT:GainFocus'
OF EVENT:Resume
Loc:RVString = 'EVENT:Resume'
OF EVENT:Notify
Loc:RVString = 'EVENT:Notify'
OF EVENT:Timer
Loc:RVString = 'EVENT:Timer'
OF EVENT:DDErequest
Loc:RVString = 'EVENT:DDErequest'
OF EVENT:DDEadvise
Loc:RVString = 'EVENT:DDEadvise'
OF EVENT:DDEdata
Loc:RVString = 'EVENT:DDEdata'
OF EVENT:DDEcommand
Loc:RVString = 'EVENT:DDEcommand'
OF EVENT:DDEexecute
Loc:RVString = 'EVENT:DDEexecute'
OF EVENT:DDEpoke
Loc:RVString = 'EVENT:DDEpoke'
OF EVENT:DDEclosed
Loc:RVString = 'EVENT:DDEclosed'
OF EVENT:DDEexecute
Loc:RVString = 'EVENT:DDEexecute'
OF EVENT:DDEexecute
Loc:RVString = 'EVENT:DDEexecute'
OF EVENT:DDEexecute
Loc:RVString = 'EVENT:DDEexecute'
OF EVENT:Move
Loc:RVString = 'EVENT:Move'
OF EVENT:Size
Loc:RVString = 'EVENT:Size'
OF EVENT:Restore
Loc:RVString = 'EVENT:Restore'
OF EVENT:Maximize
Loc:RVString = 'EVENT:Maximize'
OF EVENT:Iconize
Loc:RVString = 'EVENT:Iconize'
OF EVENT:Completed
Loc:RVString = 'EVENT:Completed'
OF EVENT:Moved
Loc:RVString = 'EVENT:Moved'
OF EVENT:Sized
Loc:RVString = 'EVENT:Sized'
OF EVENT:Restored
Loc:RVString = 'EVENT:Restored'
OF EVENT:Maximized
Loc:RVString = 'EVENT:Maximized'
OF EVENT:Iconized
Loc:RVString = 'EVENT:Iconized'
OF EVENT:Docked
Loc:RVString = 'EVENT:Docked'
OF EVENT:Undocked
Loc:RVString = 'EVENT:Undocked'
OF EVENT:BuildFile
Loc:RVString = 'EVENT:BuildFile'
OF EVENT:BuildKey
Loc:RVString = 'EVENT:BuildKey'
OF EVENT:BuildDone
Loc:RVString = 'EVENT:BuildDone'
OF EVENT:User
Loc:RVString = 'EVENT:User'
OF EVENT:Last
Loc:RVString = 'EVENT:Last'
OF EVENT:DoResize
Loc:RVString = 'EVENT:DoResize'
Else
Loc:RVString = pEvent
End
Return Clip(Loc:RVString)