Menu

#25 dragimage artifacts under Aqua

open
None
5
2005-02-14
2005-01-25
No

The attached image shows a problem with dragimage
leaving artifacts under Aqua. As an item is dragged,
the drag image gets stamped around the widget. These
artifacts remain until the widget loses focus or gets
redrawn due to e.g. resizing.

Discussion

  • Michael Kirkham

    Michael Kirkham - 2005-01-25
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2005-02-14
    • assigned_to: nobody --> treectrl
     
  • Michael Kirkham

    Michael Kirkham - 2005-02-22

    Logged In: YES
    user_id=498198

    Note: 975677 was marked as a duplicate of this bug, but was
    observed under Windows. This bug has only been observed
    under Aqua.

     
  • Michael Kirkham

    Michael Kirkham - 2005-05-16

    Logged In: YES
    user_id=498198

    I figured out the reason for this. Apparently, Quartz
    doesn't support XOR, which the non-windows version of the
    drag image code uses.

    "In your QuickDraw application, you might have used region
    updating in conjunction with XOR to minimize the amount of
    drawing that needed to be done for animation or editing.
    Quartz does not support XOR, but it does support transparent
    windows."

    http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_regions/chapter_8_section_1.html

    Setting ::tk::mac::useCGDrawing to 0, which makes Tk use
    QuickDraw instead, seems to work as a workaround. Longer
    term, you'll probably want to use some other method for the
    dragimage.

    Note that this confirms that this bug is totally unrelated
    to 975677.

     

Log in to post a comment.