[Gambas-user] Drag & Drop to KDE Desktop
Fabien Bodard
gambas.fr at ...626...
Wed Dec 17 12:41:02 CET 2008
doriano you have not read carefully my message too !
this is an exemple to interact with desktop it work on KDE4..;
2008/12/17 Doriano Blengino <doriano.blengino at ...1909...>:
> Dear Fabien,
>
> you didn't read my message carefully. I specified I wanted to interact
> with desktop (kde), it is in the mail subject too.
>
> Anyway, I tried your example. When doing D&D in the same application
> instance, the receiver correctly gets data and format. Dragging between
> two instances of the same application does work no more - the receiver
> (Drop event handler) only receives the format data.
>
> This is encouraging. This evening I will try some more at home, here at
> work I don't have KDE.
>
> Cheers,
> Doriano.
>
>
>
> Fabien Bodard ha scritto:
>> it's not a gambas ability the problem is to give the good data format
>>
>>
>> ' Gambas class file
>>
>> PUBLIC SUB _new()
>>
>> END
>>
>> PUBLIC SUB Form_Open()
>> ListBox1.Add(Application.Path &/ "FMain.form")
>> END
>>
>> PUBLIC SUB ListBox1_Drag()
>>
>>
>>
>> END
>>
>> PUBLIC SUB ListBox1_Drop()
>>
>>
>>
>> END
>>
>> PUBLIC SUB Form_Drop()
>>
>> Message(Drag.Data)
>> PRINT Drag.Format
>>
>> END
>>
>> PUBLIC SUB ListBox1_MouseDown()
>>
>> ListBox1.Drag(ListBox1[0].Text, "text/uri-list")
>>
>>
>> END
>>
>>
>> 2008/12/17 Doriano Blengino <doriano.blengino at ...1909...>:
>>
>>> M0E Lnx ha scritto:
>>>
>>>> AFAIK, such a feature doesn't exist yet... I remember asking about it
>>>> some time ago.
>>>> At least not in 2.x
>>>>
>>>> On Tue, Dec 16, 2008 at 2:15 PM, Doriano Blengino
>>>> <doriano.blengino at ...1909...> wrote:
>>>>
>>>>
>>>>> Hi list,
>>>>>
>>>>> how can I implement drag&drop with the desktop?
>>>>>
>>>>> I mean, drag an item (a filename, for example) to an icon on the
>>>>> desktop, and viceversa, a file from a file manager to a running gambas
>>>>> application?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> I should refine my question. Probably gambas does not have native
>>> support for this, but I am not afraid to declare external functions to
>>> implement it. Those function probably are found in kdelibs. The problem
>>> is: what to search for in those libs? And could a gambas program cope
>>> with data types and callbacks, events ar whatever required to do this?
>>>
>>>
>
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dragdemo-0.0.1.tar.gz
Type: application/x-gzip
Size: 8069 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20081217/26f097fc/attachment.bin>
More information about the User
mailing list