CLIM mail archive
Re: What does HANDLE-EVENT do?
To: Nichael Cramer <ncramer@BBN.COM>
Subject: Re: What does HANDLE-EVENT do?
From: Jeff Morrill <jmorrill@BBN.COM>
Date: Sun, 29 May 1994 08:36:21 -0400
In-Reply-To: Nichael Cramer's message of Thu, 26 May 1994 18:16:02 -0400. <199405262221.SAA03689@bullwinkle.bbn.com>
Date: Thu, 26 May 94 18:16:02 EDT
From: Nichael Cramer <ncramer@BBN.COM>
Subject: What does HANDLE-EVENT do?
I can't seem to get the method HANDLE-EVENT to be called. (Described, for
example, in Section 20.4.1 of the CLIM2 manual as one of the methods that I
"need to be cognizant of to write [my] own classes of gadget".)
I have a class MY-GADGET which I display in the standard way:
This gets displayed properly, however nothing I do (e.g. pointer-clicks,
keyboard input, waving the pointer around, etc) will cause the HANDLE-EVENT
to be called on my gadget.
In point of fact, the only time the method seems to be called _anywhere_ on
_anything_ is for a few POINTER-ENTER/EXIT-EVENTs on some viewports.
(I've tried mixing-in everything I can think of into my gadget-class, still
What am I doing wrong? If this is not the way to get my hands on these
kinds of events, then what should I be doing?
There is a file, custom-gadget.lisp, that I put some time ago on
cambridge.apple.com. It contains a working push-button and a working
slider. The test code displays them on an accept-values pane and they
seem to work. The button is displayed using with-output-as-gadget.
The slider is displayed by defining a "view" and invoking ACCEPT.
Perhaps by comparing your code with that code, you may see the problem.
Main Index |