[comp.windows.x.motif] Problems with multiple pop-up menus

kostka@ipsi.UUCP (Bernd Kostka) (01/24/91)

I have problems to understand how multiple pop-up menus are used.

What we do:
We are creating menus using the function XmCreatePopupMenu; we don't
change any of the default resources or translations.

What we have:
We are working on Sun-3 and Sun-4, X11R3, Motif 1.0. Furthermore, we
want to port our software to SCO Open Desktop.

It is possible to create more than one pop-up menu having the same
parent. It is furthermore possible to create pop-up menus for widgets
that already "inherited" other pop-up menus from their parent.

Now: how does a user handle these menus?
Some testing seems to indicate that Button3 pops up all "inherited"
menus at once, using Button3 they disappear one by one. If there are
"inherited" menus, then Button1 pops up any direct child menu, but
selection is done with Button3 again. If there are more than two levels,
then the intermediate one(s) seem to be missing.

This is all very confusing. I can't believe that there shouldn't be a
consistent explanation to this behavior.

Is it perhaps possible to exclude menus from "inheritence"?
Or should this situation be avoided in general? Is it considered to be
bad style to do this?

Any explanations, examples, pointers to literature, etc. are appreciated.
Thanks in advance.

Bernd Kostka