- handler-set! WIDGET TYPE PROCprocedure
Sets an event handler of TYPE for WIDGET to PROC. TYPE must be one of (mouse-over mouse-leave mouse-down mouse-up focus-gain focus-lose text-input drag-start drag-stop drag). Depending on TYPE, PROC must be a procedure accepting the corresponding argument list:
- mouse-over
- (lambda (widget) ...)
- mouse-leave
- (lambda (widget) ...)
- mouse-down
- (lambda (widget button) ...)
- mouse-up
- (lambda (widget button) ...)
- focus-gain
- (lambda (widget) ...)
- focus-lose
- (lambda (widget) ...)
- text-input
- (lambda (widget text) ...)
- drag-start
- (lambda (widget x y) ...)
- drag-stop
- (lambda (widget x y) ...)
- drag
- (lambda (widget x y relx rely) ...)