Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07
We are using version 2.1.30 of OpenMotif. We are encountering the following problem
when we use tear off menus
1) All the menu buttons work before the menu is torn off.
2) All of the menu options still work after the menu is torn off.
3) When the tear off menu is closed, some of the option menu buttons on the pull down
menu no longer work. Usually they correspond to options that were used when the menu
was torn off. If you select one of these menu items, the mouse pointer turns into an
"X" and the callback associated with the item does not happen. However, the menu
items do work when you use their keyboard accelerators and associated hot keys.
4) If you tear off the menu again, everything works fine.
When we create the pulldown menus we use the following commands
num_args = 0 ;
XtSetArg ( args [ num_args ] , XmNtearOffModel , XmTEAR_OFF_ENABLED ) ;
num_args ++ ;
XmCreatePulldownMenu ( menu , menu_name , args , num_args )
Where menu is the menubar , menu_name is a string naming the pull down menu, args is
an Arglist, and num_args is a cardinal.
We do not set any callbacks to the Tear Off menu using either XmNtearOffMenuActivateCallback or XmNtearOffMenuDeactivateCallback.
Is this a problem that has been seen before? Any help would be appreciated.
Bryon Lawrence
‹ XmText and iso10646-1 Parent resizes to default when child closes ›
Problems With Tear Off Menus
The described behavior looks like one caused by this bug http://bugs.motifzone.net/show_bug.cgi?id=1154
This bug is fixed in OpenMotif 2.2.3.