Progress
Application Development
Environment — Getting Started
Drag and Drop Module
Progress can read the names of files that an end user drops onto certain widgets. With this functionality, the end user can populate widgets, like selection lists, with a list of files. Progress can also use the filenames to retrieve the files and open them in appropriate widgets. Using these techniques, you could save your users time by allowing them to load data into your program by dragging a filename from the Windows Explorer or Desktop onto a widget in your application.
Choose the Drag and Drop button on the SportsPro main window to launch this module:
![]()
Implementing this technique is simple. You set the DROP–TARGET attribute on the property sheet of a selection list or editor widget and code the trigger event. For images, the DROP–TARGET attribute is set on the frame that holds the image. When a file is dropped on an object with the DROP-TARGET attribute enabled, the DROP–FILE–NOTIFY event fires.
NOTE: If you cannot click on an object, it is probably behind another object in the window’s layout. Use the Layout menu to move the top object back, or use the List Objects dialog box to access the bottom object.Table 2–5 describes the major objects used in the Drag and Drop module.
For more information on how drag and drop works, see the entries for the DROP–TARGET attribute, the END–FILE–DROP( ) method, the GET–DROPPED–FILE( ) method, the DROP–FILE–NOTIFY event, and the NUM–DROPPED–FILES attribute in the Progress Language Reference .
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |