;;; -*-Scheme-*- ;;; ;;; Grip widget demo (require 'xaw) (define top (application-initialize 'grip)) (set-values! top 'width 50 'height 50) (define g (create-managed-widget (find-class 'grip) top)) (augment-translations g " : GripAction(press) : GripAction(move) : GripAction(release,done)") (add-callback g 'callback (lambda (w x) (format #t "Action: ~s Event: ~s~%" (cdr x) (caar x)))) (realize-widget top) (context-main-loop (widget-context top))