From: Francis Leboutte

Subject: Re: mouse-left-click

Date: 2000-4-22 18:10

At 22/04/00 09:05 +0200, Antoine Zahnd wrote:
>...
Just trace mouse-left-down to see what is wrong: 0: (mouse-left-down #<my-window-pane :my-window> 1 #.(make-position 174 218)) 0: returned 0 In your example event methods have to be defined for the pane class instead of the window class. The CG documentation could be clearer :
>default-pane-class >Returns the name of the class to instantiate for the single child pane of >a frame-with-single-child class (thus, the default method for the >bitmap-window class returns the symbol bitmap-pane). If you subclass >frame-with-single-child, you should provide a default-pane-class method >for your new class.
In this situation (if you subclass frame-with-single-child - and thus bitmap-window that is a subclass of frame-with-single-child ) , you also should define a pane subclass (as you have done) . And the event methods should be defined for the pane subclass (not for the window class, as in the CG documentation example that uses a frame-window subclass - see the 'About events in the IDE' entry). Regards -- Francis Leboutte Algorithme, Rue de la Charrette 141, 4130 Tilff, Belgium <algo.be at fl> <acm.org at leboutte> www.algo.be +32-(0)4.388.3919