|
Chapter 11. Clipboard and Drag and DropMost applications offer transfer of data to and from the clipboard via copy, cut, and paste. It's a basic way of implementing interoperation between your application and others. More sophisticated applications also allow the user to drag objects between windows, either within a single application or between two applications. For example, dragging a file from a file browser to an application window causes the data to fill the window, be added to a list, or some other behavior. This can be a much faster way to associate data with the application than using menus and dialogs to achieve the same thing, and your users will appreciate having it as an option. Clipboard and drag and drop operations share some classes in wxWidgets, reflecting the fact that they both deal with data transfer, and so this chapter deals with both topics together. We'll see how to use the standard data objects that wxWidgets provides, as well as how to implement our own. |
|