Howto: Observing a widget
is it possible to observe a widget?
One 3rd Party Component is accessing a widget
but it looks like that the access fails.
Is it possible to recognizing when a widget gets:
b) looses or receives a focus
c) and so on
can you help please?
Re: Howto: Observing a widget
On Oct 28, 5:50*am, Thomas Lehmann <t.lehm...@rtsgroup.net> wrote:[color=blue]
> is it possible to observe a widget?
> One 3rd Party Component is accessing a widget
> but it looks like that the access fails.
> Is it possible to *recognizing when a widget gets:
> a) unmanage/managed
> b) looses or receives a focus
> c) and so on
> can you help please?
What do you mean that it looks like "the access fails"?
What do you mean by saying the component is accessing a widget?
Register an EventHandler on the widget (XtAddEventHandler)
to check for various things
use mask=StructureNotifyMask for manage/unmanage
use mask=FocusChangeMask for receiving focus