Difference: 520DragDrop (2 vs. 3)

Revision 32012-06-15 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPX520Features"

Drag & Drop Support

Line: 17 to 17
  When the user drops an object (file/folder/email message/etc) on the drop target, Appx will populate 2 files and then fire the specified --- OPTION. The files are: --- DROPINFO which will contain one record for every object dropped and --- DROPPROP which will contain multiple records for each object dropped. Both of these files are keyed by the --- WIDGET IMAGE KEY, so if you have more than one drop target on your image, you can differeniate them. Alternatively, you can have the different drop targets fire different Option Numbers.
Changed:
<
<
The --- DROPINFO PATHNAME contains the full path to the object the user dropped. The --- DROPROP file is a child file of --- DROPINFO and contains multiple records for each object. The specific data varies depending on the type of object dropped. The --- DROPPROP KEYWORD identifies a specific property, and --- DROPPROP VALUE contains the value of that property.
>
>
The --- DROPINFO PATHNAME contains the full path to the object the user dropped. The --- DROPPROP file is a child file of --- DROPINFO and contains multiple records for each object. The specific data varies depending on the type of object dropped. The --- DROPPROP KEYWORD identifies a specific property, and --- DROPPROP VALUE contains the value of that property.
  For example, if a file from the users desktop is dropped, --- DROPINFO PATHNAME might contain something like "C:\Documents and Settings\jean\Desktop\VolumeC.txt" and --- DROPPROP might contain the following keywords and values:
Line: 26 to 26
 
size 4242
type File
Changed:
<
<
An Email message might have the following ---- DROPROP keywords and values:
>
>
An Email message might have the following ---- DROPPROP keywords and values:
 
Keyword Value
Categories Blue Category (controlled by user's Outlook settings)
Line: 38 to 38
 
size 18944
type OutlookMsgItem
Changed:
<
<

DROPINFO PATHNAME would contain the path to open and read the dropped item.
>
>
Note that these keywords vary depending on the user's desktop language.
 
Changed:
<
<
Note that these files are cleared every time the user drops an object on your drop target. If you do not process or save the information each time, the previous data will be lost.
>
>

DROPINFO PATHNAME would contain the path to open and read the dropped item. You could also use this to open the file via .CLIENT LOAD URL:

      SET      --- TEMP 512                   =      "
      APPEND   --- TEMP 512                   0  --- DROPINFO PATHNAME
      APPEND   --- TEMP 512                   0      "
      PASS     --- TEMP 512                   FIELD            SHARE? N
      GOSUB    --- .CLIENT LOAD URL

We enclose the name in quotes in case it contains a space.

Note that these files are cleared every time the image is displayed to the user. If you do not process or save the information each time, the previous data will be lost.

 

Comments:

Read what other users have said about this page or add your own comments.

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback