question about event propagation in a canvas



[ slightly off-topic, but the wizards are here : ]

imagine the heirarchy of a canvas object:

	 canvas
         /     \
        /       \
      object1    group1	
		 /     \
		/       \
               object2  object3

now imagine that object1 is intended to be purely visual - it is
always visible ("on top" of the canvas), but does not respond to any
events. by contrast, objects 2 and 3 are responsive to events, but may
be visually occluded by object1.

when an event does occur with the pointer "in" object1, the event
propagates immediately to the canvas, and dead ends there. this means
that object1's presence on the canvas makes some areas of the canvas
"dead".

what you really would like to do is to handle the event all over
again, trying the other "branch" (es) of the group/object heirarchy.

have any of the incarnations and permutations of the GnomeCanvas
tackled this issue? am i missing an easy solution?

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]