I have an urgent requirement to turn a single select XmComboBox into a
widget that can support multiple selections. I'm currently researching
my options. Can an XmComboBox be manipulated to support multiple
selections on the list widget underneath. I wonder if a XmSpinBox
might be a better option. But at this point
I'm looking for the fastest solution due to time constraints.
Thanks,
J
From my experience XmList supports multiple selection without problems.
But I don't know if XmComboBox's internal XmList can be changed to work
in that way.
Quoting Antony Fountain:
http://www.motifdeveloper.com/tips/tip14.html
"ComboBoxes are however associated with only a single selection at any
given time. If multiple choices may be made from a set of items, the
List remains the correct interface paradigm for the programmer to adopt."
Best regards,
Dušan Peterc
http://www.arahne.si
Luckily the application is not using an XmComboBox as I originally
thought, but a custom
combo box made from a label and list widget. I have been able to
modify this widget
directly.
Thanks,
J.
You may already know this but if you compile editres support into your
application you can use it to get a graphical layout in tree form of
every widget in the application, which shows what type of widget every-
thing is, and each widget's name, the Xll ID of each one, and you can
dynamically set widget resources, and do a host of other somewhat
useful things like select a widget in editres and have that widget
blink in your application window.
All you have to do is add the line
#include <X11/Xmu/Editres.h>
to your source file and link against libXmu, i.e. -lXmu
Thanks,
J.
Not quite. You also have to add this line to your source code:
XtAddEventHandler( toplevel, 0, True, _XEditResCheckMessages,
NULL );
where toplevel is your top level shell.
--
Fred K
Fred, you are correct as always! Thank you sir... :)