Widgets transparent for events

I have a group with an attached arm callback. In this group, there are a
couple of PtLabel widgets. Now, when I click on one of the labels, the arm
callback is not called. Now, I could attach the arm callback to all labels
as well, but I’d like to avoid that. So how do I make the PtLabel widget
“transparent for events” such that the mouse event actually goes through to
the PtGroup widget?
Thanks
Markus

Have you tried the Raw Event callback for the PtGroup for the button
pressed (or released) event to see if it is called when the label is
clicked? I was wondering if this would work. Also, there is a filter
child events callback that was somewhat ambiguous in the help, but was
wondering if it could be used to trap child events before sending them
to the child.

Rob

Markus Loffler wrote:

I have a group with an attached arm callback. In this group, there are a
couple of PtLabel widgets. Now, when I click on one of the labels, the arm
callback is not called. Now, I could attach the arm callback to all labels
as well, but I’d like to avoid that. So how do I make the PtLabel widget
“transparent for events” such that the mouse event actually goes through to
the PtGroup widget?
Thanks
Markus

I would say that is not possible what you want to do. But you can
put in the setup callback a routine that take’s the group widget
as a parent go through the childs of it and check if a PtLabel
widget than attach the specific callback.

In your case you have to that a flag at the group widget EXTEND_FLAGS
somewhere and than you get the callback, but you will get it from
there group. But at this position you can use the a function which
forwards an event to that important widget. But this is a lot of work.

\

Bye Sascha( sascha@bitctrl.de )

Sascha Morgenstern
BitCtrl Systems GmbH
Weißenfelser Straße 67
Germany - 04229 Leipzig
Phon. +49 341 490 670
FAX. +49 341 490 67 15
eMail: sascha@bitctrl.de
WWW: http://www.bitctrl.de



Markus Loffler <loffler@ces.clemson.edu> schrieb in im Newsbeitrag:
9b2jn4$hbe$1@inn.qnx.com

I have a group with an attached arm callback. In this group, there are a
couple of PtLabel widgets. Now, when I click on one of the labels, the arm
callback is not called. Now, I could attach the arm callback to all labels
as well, but I’d like to avoid that. So how do I make the PtLabel widget
“transparent for events” such that the mouse event actually goes through
to
the PtGroup widget?
Thanks
Markus