by nageswaragunupudi » Wed Feb 11, 2015 12:46 am
A combobox is more suitable for this kind of interface than xbrowse.
Unfortunately, combobox does not support multiple selection, as far as I know.
Both listbox and xbrowse support multiple selection and listbox looks more elegant here than xbrowse. But both suffer from the limitation that their display is clipped by the size of the parent window ( In this case, the ToolBar ).
Alternative-1:
Have a Get with Bitmap Button (down arrow is the best) on the toolbar displaying the selected options. This gives a familiar look of a combobox.
The button action is to create a simple list box with multiple selection option, precisely positioned below the Get. The parent window is the parent window of the Rebar. We take care of the display coordinates of the listbox at runtime inside the button-action. We also provide a way to close the listbox. When closed, the selected options are displayed by the Get.
The idea is to give a look and feel of a dropdown combobox with multiple selection.
Alternative-2:
Much simpler.
One of the toolbar buttons to have a drop-down menu with selected items checked.
I prefer the second alternative.
There can probably many other alternative approaches but this strikes to my mind immediately.
Regards
G. N. Rao.
Hyderabad, India