[plt-scheme] 'grabbing' the canvas/pasteboard? to scroll with the mouse pointer
Thanks, at least I know where to look.
I have also been looking at 'wxs_madm.cc' specifically;
> static Scheme_Object * os_wxMediaAdminScrollTo (int n , Scheme_Object * p
[] ) {
I'm having trouble making sense of it because I have no experience in c++,
and the code lacks any comments.
Is there any documentation to this stuff.
s.
On Jan 18, 2008 2:14 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Thu, 17 Jan 2008 15:44:20 +0000, "Stephen De Gabrielle" wrote:
> > I'm trying to implement a 'grab and scroll' method that lets the
> > canvas be moved by the mouse pointer.
> >
> > I'm pretty happy with getting the location via get-x get-y and
> > dc-location-to-editor-location,
> > but I'm trying to find an alternative to the 'scroll-to' to actually
> > do the moving?
> >
> > (The idea is that while the left mouse button is down, the mouse
> > position is static with respect to the pasteboard position, but moves
> > with respect to the canvas.)
>
> I think there's isn't really an alternative to `scroll-to'. The
> `scroll-to' method of a pasteboard mostly just sends on the request to
> its administrator's `scroll-to' method, which is the only interface for
> talking about the relative position of the editor in the display.
>
> Matthew
>
>
--
Cheers,
Stephen
--
Stephen De Gabrielle
s.degabrielle at ucl.ac.uk
Telephone +44 (0)20 7679 5242 (x45242)
Mobile 079 851 890 45
Project: Making Sense of Information (MaSI)
http://www.uclic.ucl.ac.uk/annb/MaSI.html
UCLIC: University College London Interaction Centre
http://www.uclic.ucl.ac.uk/
Remax House - 31/32 Alfred Place
London - WC1E 7DP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080118/804bdb21/attachment.html>