[Gambas-user] Drag & Drop to KDE Desktop

Fabien Bodard gambas.fr at ...626...
Wed Dec 17 08:32:50 CET 2008


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?
>
> Thanks,
>
> --
> Doriano Blengino
>
> "Listen twice before you speak.
> This is why we have two ears, but only one mouth."
>
>
> ------------------------------------------------------------------------------
> 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
>




More information about the User mailing list