RE: [PHP-GTK] mouse movements
| From: | Tony Leake | Date: | Mon, 10 Nov 2003 11:12:03 +0000 |
| Subject: | RE: [PHP-GTK] mouse movements | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4126@lists.php.net to get a copy of this message | ||
On Mon, 2003-11-10 at 09:23, Steph wrote:
>
> erm, you should be..
> did you find these?
> http://gtk.php.net/manual/en/gdk.enum.gdkeventmask.php
> - they'll help :)
No I hadn't, thanks.
> '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).
>
I think this is what I was looking for, I'll give it a try tonight.
> Remember you can't touch any gdkwindow property until you realize() a
> widget..
>
I didn't know that in the first place :)
> 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.
>
Maybe, but I'm going to try
$widget->set_uposition($some_calculation_from_mouse_position) as I think
it's closer to what I'm looking for.
Thanks for your help
tony
--
Tony Leake
Developer
Ebuyer (UK) Ltd
www.ebuyer.com