drag and drop
| From: | Richard Thomas | Date: | Mon, 16 Dec 2002 12:40:16 +0000 |
| Subject: | drag and drop | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2794@lists.php.net to get a copy of this message | ||
Hahah ok so the drag and drop stuff is pretty new, that would explain
why I had such a hard time finding anything about it
Well then how can I get the current mouse cursor position? Is that
possible.. If so I can make a temp version of drag and drop that I would
be happy to share with everyone
On Sun, 2002-12-15 at 17:55, Steph wrote:
> 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
> >
> >