Re: drag and drop
| From: | Steph | Date: | Sun, 15 Dec 2002 23:55:04 +0000 |
| Subject: | Re: drag and drop | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2791@lists.php.net to get a copy of this message | ||
be gentle, we've only had dnd on windows for a couple of weeks and I'm
still learning it :)
There are specific signals and methods for dnd that come under
GtkWidget, but aren't filled in yet in the manual (mainly because of
above). There is some usage of some of them in test/gtk.php -check it
out of CVS or find it in with your distro.
----- Original Message -----
From: "Richard Thomas" <gtklist@cyberlot.net>
To: "PHPGTK" <php-gtk-general@lists.php.net>
Sent: Sunday, December 15, 2002 9:15 PM
Subject: [PHP-GTK] drag and drop
> Just started playing with GTK yesterday and so far I have gotten
further
> with this then I have spending the last 2 weeks playing with Mozillas
> XUL API. ( Part of that being I already know PHP and theres ALOT more
> info on gtk out there then XUL )
>
> Anyway have a GtkFixed() with 2 buttons that move every time you press
> them.. I started to go from there to drag and drop when I started
having
> problems,
>
> First being while my basic idea that moves the buttons is works (
using
> the pressed signal ) it seems to be wrong for drag and drop, ( well I
> could make it work if I could figure out how to get the mouse coords
> which is the other part of my problem )
>
> But anyway I see from looking through this list there are specific
> classes/objects for drag and drop, and im just using generic move()
>
> So basically I have 2 questions..
>
> 1. How can I get the current mouse position ( with this I can get my
> first drag and drop code working and while its done improperly its
> simple and would work and the code only takes up 20 lines total for
the
> whole generic version of the script)
>
> 2. Anyone got a basic example of how to do drag and drop Properly?
>
>
> 3. Back to question 2, Is there a good website that has code
> snippets/basic examples for gtk-php and if not lets get one going!!!
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>