Re: Drag and drop with clg
Espen S Johnsen <[email protected]> 06 Feb 2006 21:24:57 +0100
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
Jesus Alvaro <[email protected]> writes: > Thanks for your work. > I have just started to play with it and I find it really useful. I need to > write some graphic interface to my lisp project, and I think clg could be my > tool. I am glad you like it. > My question is regarding DragNDrop, I have found an example in python that > could be very useful for me if it could be done with lisp objects in clg. > http://www.moeraki.com/pygtktutorial/pygtk2tutorial/sec-DNDMethods.html#dragndropfig > http://www.moeraki.com/pygtktutorial/pygtk2tutorial/examples/dragndrop.py > > With a couple of modifications it could be my starting point cause I just > need to edit position and size of objects. > > 1. Is it possible to do it with clg? any suggestion or help? (bitmaps are > not needed, boxes could be enough) I finally found some time to implement drag and drop in clg yesterday. It turned out to be more work than anticipated because of a design deficiency inside the gobject wrapper code. But now it's all in CVS, including a translation of the Pyton example (examples/testdnd.lisp). > 2. One interesting modification would be the capability to change the size > of the buttons by dragging any corner. any suggestion or help? This should be possible to do by connecting to the motion-notify-event signal, but I don't have any example code at hand. -- Espen ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642