Problem on XmCreatePopupMenu with ressource XmMenuPost

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

Questions about motif? Contact us

1 post / 0 new
Problem on XmCreatePopupMenu with ressource XmMenuPost

Submitted by Anonymous on Thu, 02/20/2003 - 08:53.

*************************************************************************************************
Problem on XmCreatePopupMenu with ressource XmMenuPost
*************************************************************************************************
If you try to create a popup menu this way

XtSetArg (args[0], XmNmenuPost, "");
XtSetArg (args[1], XmNpopupEnabled, XmPOPUP_AUTOMATIC);
XtSetArg (args[2], XmNmenuAccelerator, "space");
submenu = XmCreatePopupMenu ((Widget)new, buffer, args, 3);

then the action you start when Btn1Down is clicked is the popup of the sub menu.
The problem is that this action does not accept any modifier like Ctrl or Shift
when you work with Sun OS. If a modifier is pressed at the same time as Btn1Down,
the sub menu doesn`t pop up.
This problem doesn`t happen on all other OS I tested.

Thanks to anyone who could help me.