Last modified on 31 October 2012, at 11:57

REBOL Programming/insert-event-func

USAGE:Edit

INSERT-EVENT-FUNC funct 

DESCRIPTION:Edit

Add a function to monitor global events. Return the func.

INSERT-EVENT-FUNC is a function value.

ARGUMENTS:Edit

  • funct -- A function or a function body block (Type: block function)

SOURCE CODEEdit

insert-event-func: func [
    {Add a function to monitor global events. Return the func.} 
    funct [block! function!] "A function or a function body block"
][
    if block? :funct [funct: func [face event] funct] 
    insert system/view/screen-face/feel/event-funcs :funct 
    :funct
]