Chapter11.Clipboard and Drag and Drop

team bbl


Chapter 11. Clipboard and Drag and Drop

Most 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.

    team bbl



    Cross-Platform GUI Programming with wxWidgets
    Cross-Platform GUI Programming with wxWidgets
    ISBN: 0131473816
    EAN: 2147483647
    Year: 2005
    Pages: 262

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net