RE: [PHP-GTK] mouse movements

From: Date: Mon, 10 Nov 2003 09:23:48 +0000
Subject: RE: [PHP-GTK] mouse movements
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4122@lists.php.net to get a copy of this message
> I'm trying to drag a widget around on a form in the same way you can in > glade on a GtkFixed component. > > I can detect when the mouse moves over our out of a widget and when the > user clicks on the widget but I don't know how to track mouse movement. > I though I was on to a winner with motion-notify-event but I cant seen > to get it to do anything at all. erm, you should be.. did you find these? http://gtk.php.net/manual/en/gdk.enum.gdkeventmask.php - they'll help :) 'pointer' is a GdkWindow property, you can get it using gdkwindow->get_pointer(); and then test the property itself. It's an array(x, y). Remember you can't touch any gdkwindow property until you realize() a widget.. Having said all that, it's likely you need dnd anyway (I'm not sure, I never tried dragging within a single widget). You might need an older version of PHP-GTK to make that work; there's a test for dnd in test/gtk.php. > > I'm guessing drag and drop is not the correct thing ere as i don't want > to drop the widget on another, just another part of the form. > > Any ideas on which way I should be heading. > > > thanks > tony > > -- > Tony Leake > Developer > Ebuyer (UK) Ltd > www.ebuyer.com > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.gtk.general (#4122) next »