ControlDragging was: Re: [lazarus] CVS Changes

Shane Miller smiller at lakefield.net
Thu Jun 15 09:38:37 EDT 2000


Marc,

I looked at your code for the TGrabber.  I didn't look it over real wel but
it looks usable.

You want to convert it?



----- Original Message -----
From: Marc Weustink <Marc.Weustink at cuperus.nl>
To: <lazarus at miraclec.com>
Sent: Thursday, June 15, 2000 3:25 AM
Subject: RE: ControlDragging was: Re: [lazarus] CVS Changes


> + From: Shane Miller [mailto:smiller at lakefield.net]
> +
> + I agree that if it would send the corrd's based on the sender
> + then this would be much easier.  However, by using Mouse.CursorPos I
> + was using the coord's based on the position on the screen.
> + That would work fine but it's a bit tougher to calculate the new
> + location (Take the mouse x, subtract the
> + form's left add the difference between where you clicked
> + ititially and the left of the control).
>
> If you assume that the form won't move while dragging a control, then you
> don't need the form top and left. Calculate the diffs relative to the
> screen.
>
> Marc
>
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus
>






More information about the Lazarus mailing list