One action for hierarchy of widgets

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
One action for hierarchy of widgets

Submitted by Anonymous on Sun, 07/21/2002 - 13:37. Developers
I have a form (i`ll call it mainform bellow) with some widgets on it (toggleButtons, frame, labels, and form which also contain some widgets). I need a callback on mouse button1 click for all those widgets except XmTogglebutton.
Now i`ve done next
I make a new translation " ..." and made override for every widgets i need.
But this is not convinient due mainform and all widgets on it are described in UIL file, so i do a XtNameToWidget for every widgets.
I sure that must exist a simple way to do it (may be i can "tell" mainform not to send mouse button press to child).

ICS_support

You can use XtCallActionProc() on all widgets, iteratively. Note that you can also probably simply call the callback procedure directly.

Anonymous

I have a "mainform" with some widgets on it. I need get a special action (or callback) when user "click" on any place in this form except toggleButtons.
So i made an translation for mouse click for "mainform", but if i click to label on mainform nothing happen -
by default all labels, forms, etc get mouse click but do nothing. Now I simply set same action for all widgets on "mainform".
I want those widgets doesn`t get mouse click and so mainform perform action for click.
If this is impossible how can I get every widget on "mainform" recursevly? (Now I call XtNameToWidget and then XtOverrideTranslations for every widget on mainform).