Hallo to everyone.
Can anyone tell me whether a ListBox can be used to
display a list with several items preselected and then
to allow a user to change some part of this selection?
I think mode multiple must allow to do this. However
I do not understand how to preselect more than one item
and how
Try to ctrl+click or Shift+click to select more than one item.
Regards
2009/9/3 Aleksandrs Livshics alek...@mpe.lv
Hallo to everyone.
Can anyone tell me whether a ListBox can be used to
display a list with several items preselected and then
to allow a user to change some part of this
This code selects all items, when mode is multiple.
Dim ii As Integer
For ii = 0 To ListBox1.Count - 1
ListBox1[ii].Selected = True
Next
But I think I didn't understand your problem correctly...
What do you mean by I have to make it current by
specifying the index. ?
How do you do that?
Alex,
Setting the mode to Multiple does allow that...
if for example you have 6 items on your listbox
if you execute these 2 lines the 1st the 4th item
will be selected
listbox1[0].Selected = TRUE
listbox1[3].Selected = TRUE
(in Gambas 2.14 on my Debian Lenny it works as described)
If the
Thanks to everyone. I just had some syntax problem which you have explained.
Alex
On Thursday 03 September 2009 14:50:53 Dimitris Anogiatis wrote:
Alex,
Setting the mode to Multiple does allow that...
if for example you have 6 items on your listbox
if you execute these 2 lines the 1st the