[maemo-developers] Aw: Re: Fremantle user interface behaviour and API

From: David Greaves david at dgreaves.com
Date: Tue May 19 18:48:53 EEST 2009
Cornelius Hald wrote:
> Thanks to Claudio and API almost all my questions have been answered and
> the Fremantle version of Conboy is looking better then ever :)
> 
> There is (for now) only one question left:
> When using HildonTextView inside a PanableArea panning is working fine,
> but I can no longer select text. Are those two mutual exclusive?

FWIW, I managed to implement this quite easily for Qt so I'm sure it's do-able
in gtk too.

The trick I used is to create a queue of mouse events until I could determine
whether or not the incoming gesture was a panning gesture. If it was the queue
was discarded; if not the events were replayed to the correct widgets.

The decision was simply delta mouse movement within a time period.

This allowed selection and even drag'n'drop to "just work".

David

-- 
"Don't worry, you'll be fine; I saw it work in a cartoon once..."

More information about the maemo-developers mailing list