Drag and drop example programsΒΆ

The following programs, located in $SCULPTOR/demo/dragdrop, illustrate the use of drag and drop:

dragdrop.f

Program with images that can be dragged and dropped within the program. Illustrates the testing of the CTRL and SHIFT keys to determine the drop effect.

dropsrc.f

Source program with images and text that can be dragged to a target program. Illustrates testing of the do_drag_drop() function return value to determine whether the object has been moved (in which case it should be destroyed).

droptrg.f

Target program that will receive a dropped image or text. Illustrates the target window event function.


RELATED TOPICS

Drag and drop and the clipboard