To do this sort of thing, you need to grab the pointer with the grab_add
function. This will make all other windows insensitive, so make sure you
do a grab_remove afterwards.
During a pointer grab, the mouse events will be directed toward the
widget's window, so your normal event signal handlers should get them.
Take a look at the GtkButton source code in gtk+ for an example (it is
used for the behaviour where you press the button, move the mouse out of
the window and then move it back again).
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 27 Sep 1999, J.W. Bizzaro wrote:
> I'm looking to do that too and even make the canvas grow if you drag beyond the
> actual width and height. Jeff
>
>
> Rick Ree wrote:
> >
> > I would like to implement the following feature in my program: when a user
> > drags the mouse 'off the screen' (i.e., out of the viewable range of the
> > canvas), I'd like the scrolled window containing the canvas to adjust
> > accordingly, scrolling the canvas to expose previously hidden areas. This
> > kind of thing is common in spreadsheets.
> >
> > I assume I have to manipulate the GtkAdjustment objects of the scrolled
> > window, but it's unclear to me exactly how to do this. Any advice?
> >
> > Thanks very much in advance,
> > Rick
> >
> > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
> --
> +----------------------------+
> | J.W. Bizzaro |
> | [EMAIL PROTECTED] |
> | |
> | THE OPEN LAB |
> | Open Source Bioinformatics |
> | |
> | http://theopenlab.uml.edu/ |
> +----------------------------+
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]