ALLText 4 supports standard VB DragDrop methods as well as support for the dropping of files from file manager style programs into ALLText. The OCX editions of ALLText also provide fully automated support for drag/drop of selected text and embedded objects within the document.
The standard VB DragDrop properties and events are supported for standard drag and drop. (See standard VB help for documentation information.)
In order to support dragging of files from FileManager, ALLText 4 includes a DropFileMode property as well as DropFileStart and DropFile events. The DropFileMode property determines whether ALLText will (=1) or will not (=0) respond to files dropped from File Manager. With DropFileMode ON, ALLText will first trigger the event ATX_DropFileStart providing X and Y coordinates for the drop location and a third parameter indicating the number of files being dropped. Next the ATX_DropFile event will be triggered once for each file dropped and will provide the name of the file being dropped.
Description: The setting of this property determines whether ALLText will accept files Dropped from File Manager, triggering DropFile and DropFileStart Events.
Default : 1
Description: This event occurs every time you drop one or more files from File Manager before you get any DROPFILE event. It is triggered only if allowed by the DropFileMode property.
Visual Basic: Sub ALLText_DropFileStart(X As Long, Y As Long, FNumber As Integer)
Remarks: This event provides access to the X and Y coordinates where the Left mouse button was released while performing Drag-n-Drop operation. The value of parameter FNumber is equal the number of files taken from File Manager. You can change FNumber if your application does not support multiple file Drag-n-Drop operation. (For example you can set FNumber to 0)
Description: This event occurs each time ALLText window receives DROPFILE event. It is triggered only if allowed by the DropFileMode property.
Visual Basic: Sub ALLText_DropFile(X As Long, Y As Long, FName As String, FIndex As Integer)
Remarks: This event provides access to the X and Y coordinates where the Left mouse button was released while performing Drag-n-Drop operation. Parameter FName contains file name being dropped to the ALLText window. Parameter FIndex can be used to break Drag and Drop processing if an error occurred. This can be done by setting Findex flag to (1).
Copyrightę 2003 Bennet-Tec Information Systems, Inc. All rights reserved.