From: Johannes Beck

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

Date: 2000-8-3 16:28



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. Bye Joe -- Johannes Beck <arcormail.de at johannes.beck> http://home.arcor-online.de/johannes.beck/ PGP Public Key available by http://home.arcor-online.de/johannes.beck/pgp.asc