home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
lang
/
lisp
/
stk-3.002
/
stk-3
/
STk-3.1
/
Contrib
/
STk-wtour
/
lessons
/
canvas-funky.stk
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-12-13
|
315 b
|
16 lines
;;; Drawing in a Canvas (funky version)
;;; (draw with mousebutton 1)
(define wid 0)
(pack (canvas '.c1) :expand #t :fill "both")
(bind .c1 "<ButtonPress-1>" (lambda ()
(set! wid 0)))
(bind .c1 "<B1-Motion>" (lambda (x y)
(.c1 'create 'rectangle x y x y :width wid)
(set! wid (1+ wid))))