Paolo Amoroso wrote:
>
> What are the :PROPAGATED and :PROPAGATE-TO keywords used for in STklos slot
> descriptions?
propagated and propagate-to provide a simple mechanism for composite
widgets to inherit and possibly rename the slots of the tk widgets
from which they are comprised. A good simple example in the STk
distribution is the labeled entry (Lentry.stklos). Eg:
(define-class <Labeled-entry> (<Tk-composite-widget> <Entry>)
((entry :accessor entry-of)
(label :accessor label-of)
;; Fictive slots
(title :accessor title
:init-keyword :title
:allocation :propagated
:propagate-to ((label text)))
...
in this case the class <Labeled-entry> has a slot 'title which it
inherits directly from the 'text slot of its label.
--
Mr Andrew Dorrell *
Faculty of Engineering /---\ Whoo? *
University of Technology, Sydney (o o) / *
AUSTRALIA ( : ) .
^ ^
*
Received on Thu Mar 26 1998 - 02:06:17 CET