Re: Cross-platform mouse and clipboard incompatibilities

From: David Mertens <dcmertens.perl_at_gmail.com>
Date: Fri, 11 Nov 2011 14:19:08 -0600
To: prima_at_prima.eu.org

Hey everyone -

It looks like Prima::MouseScroller (in Prima::IntUtils) provides a
cross-platform way to solve the mouse click-and-drag problem. This is a
case of the systems giving different kinds of feedback, so reliable
cross-platform interaction needs this wrapper. Don't you think it should be
mentioned in the docs for MouseDown and related events? Maybe this weekend
I'll get around to touching up the docs. Maybe. :-)

However, I'm still stumped about the scroll-wheel and image copying to the
clipboard. I looked at a number of widgets that have reliable
cross-platform scroll-wheel interaction. It looks like they use
on_mousewheel, which is exactly what I do, but it doesn't work for my
widget. Is there something, perhaps, about the event going to a
higher-level widget?

David

On Thu, Nov 10, 2011 at 6:44 AM, David Mertens <dcmertens.perl_at_gmail.com>wrote:

> Hey everybody -
>
> I've written a kick-ass plotting library using Prima and PDL that
> introduces a new Plot widget. I'll be announcing it publicly pretty
> soon, but it depends on some very recent changes to PDL, so I won't
> announce it until a developer's release has been pushed to CPAN. If
> you would like to check it out right now, email me and I'll send
> instructions for how to build it.
>
> My problem is that I use mouse interaction extensively. Scroll wheel
> action allows users to zoom in and out, clicking and dragging with the
> left mouse button pans. However, on Windows (Strawberry and Cygwin),
> scroll-wheel callbacks are not called in the same fashion as on Linux
> and Mac, which means scroll-wheel zooming doesn't work. Also, on
> Cygwin in particular but not Strawberry, left mouse button dragging is
> not reported in the same way as on all other OSes, which means panning
> doesn't work. This sort of user interaction is a major feature of this
> library, so I'd really, *really* like to get these working.
>
> Another problem is that copying and image to the clipboard does not
> seem to work on Mac. Again, a major feature. (It means you can throw
> plots into a slide presentation very quickly via copy-and-paste,
> compared with other plot libraries that require you save the file and
> load it.)
>
> My questions: Are these known incompatibilities? Should I try to find
> a way to program around them? Or, should I create some simple test
> applications that demonstrate the differences?
>
> Thanks!
> David
>
> --
> Sent via my carrier pigeon.
>

-- 
Sent via my carrier pigeon.
Received on Fri 11 Nov 2011 - 21:28:46 CET

This archive was generated by hypermail 2.2.0 : Sun 24 Jun 2012 - 02:54:47 CEST