view with clear background doesn't get mouse events

  • Hello,

    I have a "transparent" view -- nothing has been drawn onto it yet,
    not even background -- in a non-opaque (essentially transparent)
    window.  I can't seem to be able to receive any mouse events in the
    transparent view, all mouse events essentially "sink through" to
    whatever is next underneath.  Is there any way around this?

    I've been trying to figure out how to "forward" mouse events from
    what happens to get the mouse event back up to the  transparent view
    described above.  But this approach seems both difficult (haven't
    figured out whether and how I can make it work yet) and crude.  Is
    there a more elegant way of doing this, something obvious that I am
    missing here?

    Thanks for any help,

    --
    ivan
  • > Hello,
    >
    > I have a "transparent" view -- nothing has been drawn onto it yet,
    > not even background -- in a non-opaque (essentially transparent)
    > window.  I can't seem to be able to receive any mouse events in the
    > transparent view, all mouse events essentially "sink through" to
    > whatever is next underneath.  Is there any way around this?
    >
    > I've been trying to figure out how to "forward" mouse events from
    > what happens to get the mouse event back up to the  transparent view
    > described above.  But this approach seems both difficult (haven't
    > figured out whether and how I can make it work yet) and crude.  Is
    > there a more elegant way of doing this, something obvious that I am
    > missing here?
    >
    > Thanks for any help,
    >
    > --
    > ivan
    >

    [window setIgnoresMouseEvents:NO];

    Christiaan
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today