Using drag-and-drop in forms

WinStudio uses a combination of "Drag From Events" and "Drop On Events" to perform drag-and-drop operations between components.

For a drag-and-drop operation to work, you must:

  1. Configure at least one event in the Drag From Event property of a component from which you want to enable drag-from operations.
  2. Configure at least one event in the Drop On Event property of a component to which you want to enable drop-on operations.
  3. Assign the same event to at least one "drag-from" component and at least one "drop-on" component.

    For drag-and-drop operations to work, you must have at least one "drag from" component and one "drop on" component with the same event assigned to both. Use the Edit Drag From/Drop On Events dialog box to make these assignments.

  4. If you are using a custom event, define the event handler for that event.
  5. Optionally, configure a Drag Image property to be used during the drag-and-drop operation.
Rubriques liées