1 ;; -*- mode: Lisp; Syntax: Common-Lisp; Package: cells; -*-
4 Celtk -- Cells
, Tcl
, and Tk
6 Copyright
(C) 2006 by Kenneth Tilton
8 This library is free software
; you can redistribute it and/or
9 modify it under the terms of the Lisp Lesser GNU Public License
10 (http://opensource.franz.com
/preamble.html
), known as the LLGPL.
12 This library is distributed WITHOUT ANY WARRANTY
; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 See the Lisp Lesser GNU Public License for more details.
21 (deftk canvas
(widget)
22 ((active :initarg
:active
:accessor active
:initform
(c-in t
))
25 -background -borderwidth -cursor
26 -highlightbackground -highlightcolor -highlightthickness
27 -insertbackground -insertborderwidth -insertofftime -insertontime -insertwidth
28 -relief -selectbackground -selectborderwidth -selectforeground
29 -state -takefocus -xscrollcommand -yscrollcommand
30 -closeenough -confine -height
(scroll-region -scrollregion
) -width
31 -xscrollincrement -yscrollincrement
)
33 :xscrollcommand
(c-in nil
)
34 :yscrollcommand
(c-in nil
)
38 (defun focusIn->active
()
39 (list '|
<FocusIn
>|
(lambda (self event
&rest args
)
40 (declare (ignorable event
))
41 (trc "focus in activating" self event args
)
44 (defun focusOut->active
()
45 (list '|
<FocusOut
>|
(lambda (self event
&rest args
)
46 (declare (ignorable event
))
47 (trc "focus out de-activating" self event args
)
48 (setf (^active
) nil
))))
66 -disabledoutlinestipple
75 -extent -start -style
))
95 -arrow -arrowshape -capstyle -joinstyle -smooth -splinesteps
))