drag a file outside a listbox and copy it.

  1. ‹ Older
  2. 4 months ago

    Emile S

    Apr 19 Europe (France, Strasbourg)
    Edited 4 months ago by Emile S

    I am a bit OT here, but I was able to attach a Picture (drag.Picture = MyTmpPict): very nice !

    The Picture holds the data from selected Rows you are currently dragging. This is a simple user interface, I do not save the image.

    For dragging a Row from a Listbox… last time I checked, it created as many Clipping text files as you have Rows. I worked a bit more on that (drag image above), but I do not recall my results. Sorry, I do not have that project handly.

    Edit:
    I forgot to mention that sometimes, when the Finder target window is in list display, the drag does not occured (.Clipping files). Changing that to View as Icons makes the drag working again. I am not sure this is a Xojo bug.

  3. Michel B

    Apr 19 Pre-Release Testers, Xojo Pro
    Edited 4 months ago by Michel B

    For the longest time, dragging an object to the desktop outright crashed Windows builds. I don't know if it is still the case.

    For Mac, it is fortunate Sam had already done the work. Thanks.

  4. Sam R

    Apr 19 Pre-Release Testers, Xojo Pro Hengchun, Pingtung, Taiwan

    @Michel B For Mac, it is fortunate Sam had already done the work. Thanks.

    Thanks Michel; it means a lot.

  5. David C

    Apr 19 Boston, MA

    Michel,
    i have Mac and Windows Xojo Licenses.
    No builds for xojo, will there be a future build maybe for draging?

    Sam
    A demo? great, fabulous sir.... i'll take a look see.

  6. David C

    Apr 19 Boston, MA

    Jeff,
    No i did not set any Drag.FolderItem... i actually don't know where to start.

  7. David C

    Apr 19 Boston, MA

    Sam,
    So how do i view the Demo.. do i login to the feedback.app?

  8. Sam R

    Apr 19 Pre-Release Testers, Xojo Pro Hengchun, Pingtung, Taiwan

    @David C Sam,
    So how do i view the Demo.. do i login to the feedback.app?

    Click the link in the post Feedback Case #16609, then at the bottom of the Feedback window, there is an icon for downloading attachments.

  9. Michel B

    Apr 20 Pre-Release Testers, Xojo Pro
    Edited 4 months ago by Michel B

    @David C Michel,
    i have Mac and Windows Xojo Licenses.
    No builds for xojo, will there be a future build maybe for draging?

    I am usually pretty clever at finding workarounds, but frankly this one is getting way out of my league. Sometimes you got to accept the limitations, and do with what is available. At this stage, for Windows, I would suggest a simple SaveAsDialog.

    You may want to file a feature request in feedback to ask for it to be built in.

  10. David C

    Apr 20 Boston, MA

    Michel
    Ok i will file a feature request.
    Drag-n-drop and also Xojo is missing a calender control too ... lol but thx

    Sam
    when i open your link there is no icon, i see
    FeedBack
    choose other Applicaiton [ choose ]
    [ ] Remember my choice for feedback links.

    [Cancel] [ open link ]

    I do not see an icon to download attachments ?

    please advise.[img]

  11. David C

    Apr 20 Boston, MA

    -image-

    sam i have provided a screen shot of what i am seeing.

    thx

  12. Beatrix W

    Apr 20 Pre-Release Testers Europe (Germany)

    What happens if you select Feedback?

  13. Michel B

    Apr 21 Pre-Release Testers, Xojo Pro
    Edited 4 months ago by Michel B

    @David C lol but thx

    Drag and drop the way you want to do it is directly supported by very few languages.

  14. David C

    Apr 21 Boston, MA

    Bea ...
    When i click on Feedback - I get a feed back login Window.

  15. Michel B

    Apr 21 Pre-Release Testers, Xojo Pro

    lol

  16. Norman P

    Apr 21 Xojo Inc

    @David C Bea ...
    When i click on Feedback - I get a feed back login Window.

    I'd suggest reading http://developer.xojo.com/using-feedback
    Feedback is our bug reporting system

  17. David C

    Apr 21 Boston, MA

    ok I found the demo,
    there is not much functionality for ListBoxes.

  18. David C

    Apr 23 Boston, MA

    one more questions guys ....

    is there a plugin for xojo that will handle dragging and dropping from the App to outside the App. ?

  19. Michel B

    Apr 23 Pre-Release Testers, Xojo Pro
    Edited 4 months ago by Michel B

    There is one control that handles dragging from Xojo to the desktop : HTMLViewer. You can drag displayed images to the desktop, or to a folder. AFAIK it is not possible to do the same for non displayable files.

    Note that in spite of extensive search, I found nothing about that feature on the Internet.

    Apart from that, I am not aware of any system calls that will do that from a Windows app. By nature, the app you drop onto being Windows itself, and not an application program, that would require some sort of protocol between apps and Windows that does not seem to be found. A search in Stack Overflow which always return something leads nothing.

    On Mac, Sam's demo is the only project available for that feature. I am not even talking about Apple's documentation on the subject, more obscure than Nostradamus writings.

    Looks to me you are avidly chasing an untamed ornithoid...

  20. Sam R

    Apr 24 Pre-Release Testers, Xojo Pro Hengchun, Pingtung, Taiwan

    @David C there is not much functionality for ListBoxes.

    The same technique can be used in all rectControls; I would recommend that you experiment with DragRow event of a listbox. I would also suggest that you read up on handling Drag and Drop in the Language Reference, it will help.

  21. David C

    Apr 25 Boston, MA

    ok fellas for now i will experiment.

    Thank you

or Sign Up to reply!