Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox little problem
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00579643
Message ID:
00579666
Vues:
40
>Hi!
>
>This property is a ListIndex. But I afraid the problem is different, and, FWIW, I cannot understand what is a problem at all from your message.
>
>In the VFP listbox has the same fnctionality of the Windows Explorer files list. So when all items selected, and you click on item - only that item is selected. Exactly in both WE and listbox. When you want to deselect only that item - you have to "Ctrl+Click" on the item. WE works that way. If you want the same way for ListBox - it is already there - just Ctrl+Click.
>
>So, can you describe more exactly what is the difference? Maybe you have some code in listbox that prevents correct behaviour?
>

Oops, you're right. I don't know, why on earth I thought, that it should be just click. I tested in WE and it's Ctrl+Click.

Sorry, Steve, I tried to do something, which I should not...
>Good luck!
>
>
>>>>Hi everybody,
>>>>
>>>>I've added Selected All feature for my multiselect listbox (by button and by Ctrl+A). Now, when I click on item in ListBox with all items selected, it selects only this item and deselect all others. It's not the same behavior in WE, where it's exactly oposite. So, I'd like click on ListBox to behave this way: if this item is selected, it should deselect it. How can I make this? I'm a little bit confused, which ListBox property I need to use.
>>>>
>>>>Thanks in advance.
>>>
>>>You want to toggle all values to the opposite?
>>>
>>>
>>>with thisForm.list1
>>>    for i = 1 to .listcount
>>>       .selected(i) = !(.selected(i))
>>>    next i
>>>endwith
>>>
>>
>>No, just the item I clicked. I'm trying to decide, which listbox property gives me the list index of clicked option to do .selected(i)= not .selected(i)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform