From: Francis Leboutte

Subject: Re: ACL Common Graphics controls: obtaining the mousecoordinates?

Date: 2000-8-4 6:11

At 03/08/00 22:24 +0200, Johannes Beck wrote:


>Francis Leboutte wrote:
> > > > At 03/08/00 08:16 -0500, Michael Glass wrote: > >
> > >Using ACL 5.01 Common Graphics, how do I obtain the mouse coordinates from > > >inside of the "on-click" event handler for a control? > > > > > >The control in question is a "drawable". > > > > > >I couldn't get the mouse-left-down method to specialize on my control, > > >and I think I see in the documentation where it isn't supposed to.
> > > > That's strange. Trace mouse-left-down and click on your widget to see what > > happens. > > Good luck
> >I think you should define the mouse-left-method not on the component, >but on the window which is used by the component. To get mouse >coordinates you may find the method cursor-position useful.
Hello, This will work (as the trace will show). But the fact is, according to the class browser, a default mouse-left-method method exists. -- 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