I have added a number of XmtPushButtons to an
XmtOptionMenu, but I can't select one of them using the
mouse.
When I click and hold the left mousebutton over the
OptionMenu, the list of buttons appears, but moving the
mousepointer over a button doesn't give it a 'raised'
appearance (nor does anything happen when clicking on
it).
When I click and release the left mousebutton over the
OptionMenu, the list of buttons appears, and the
selected PushButton appears raised. However, the other
buttons still don't raise when moving the mouse.
After the menu opens, I *can* use the up and down
arrows on the keyboard to navigate through the list.
This worked in a previous version of Xmt (2.0 I believe),
but it stopped working after we installed version 3.0.
Logged In: NO
Can you attach a small example program showing the
problem? Also specify your platform and OS version.
==> Ken Scoggins
Logged In: YES
user_id=606388
Unfortunately this project has been put on hold, so I can't
put too much time in int :( but here goes:
The XmtOptionMenu is declared in a resourcefile as this:
XmtOptionMenu filemenu
*filemenu.labelString:
*filemenu_pane.items: \
None: "None"; \
MatmanRes: "Matman result";
In the code, a number of pushbuttons is added
programmatically:
Widget filemenu_pane, wID;
filemenu_pane = XmtNameToWidget
(toplevel, "*filemenu_pane");
wID = XmCreatePushButtonGadget
(filemenu_pane, "Testing...", NULL, 0);
XtAddCallback (wID, XmNactivateCallback, selectHDFfileCB,
(XtPointer)fileno);
XtManageChild (wID);
This all works perfect, the buttons are added to the
dropdown, and they popup when I click on the OptionMenu.
Right now we are using HP-UX 11. The program has always
worked on HP-UX 10 with Xmt 2, but we couldn't get Xmt 2
to compile on ux-11, so we had to upgrade to version 3.
We are going to try v4 soon, I'll let you know if that changes
anything.