Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that you do not have to pass ctrlentID and ctrlclassID into Forward_Event because it already knows what event it is processing, however you have to pass all other parameters that were passed into the event. Use Get_EventStatus() to retrieve the status of remainder of the event chain after Forward_Event returns.

See also

Get_EventStatus()Send_Event()Set_EventStatus()Post_Event()

Example

Code Block
function Close(CtrlEntID, CtrlClassID, CancelFlag)
declare subroutine Forward_Event, MessageBeep
*let the rest of the event chain execute
Forward_Event(CancelFlag)
* if the window closed, beep
if Get_Property(CtrlEntID, "HANDLE") else
       MessageBeep(16)
end
*returning False stops the chain at this point
return 0