STR #665

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #665

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:2 - Specific to an operating system
Subsystem:MacOS
Summary:Support for filename drag-n-drop on MacOS X
Version:2.0-feature
Created By:christoph
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
 
#1 christoph
13:12 Dec 20, 2004
dnd_file_text.cpp
2k
 
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#1 christoph
13:12 Dec 20, 2004
> > After some hours reading the Apple developer docs, I managed to drop
> > a filename from an Fl_Hold_Browser onto a program icon in the Dock
> > which then launches the application with the given filename as input.
> >
> > To achieve this, I have written the function dnd_file(char* fullpath)
> > given below. What would you think about adding this function to the
> > class Fl as an alternative to Fl::dnd() which only drags text?
>
> I'd rather add an enumeration argument to Fl::dnd() for the data
> type - currently FL_DND_TEXT (default) or FL_DND_FILENAME, with a
> compatible Fl::dnd() method which calls the new API.
>
> Can you post this all as a STR?
>
Ok, attached is a new verison of the Mac specific dnd implementation which supports an optional argument for the filetype. The filename/text is taken from the cut/paste buffer as before for backwards compatibility.

Christoph
 
 
#2 mike
17:34 Feb 05, 2005
Reassigned to 2.0.  
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.