Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop through all selected items in a listbox
Message
 
 
À
06/01/2000 12:40:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00311890
Message ID:
00314107
Vues:
45
Isaac,
>>>
>>>You should be able to use the rightclick() as long as its the last selection you make while holding the shift or ctrl keys to make your selections. All the other selections should be made with the left click.
>>>
>>>-Isaac
>>>
>>
>> Yes, I just tried it, and it works. But I'm now aware about such 'limitation' and what about users? What should I do? Put notes or tiptooltext? I'd better switch to del button instead.
>
>Nadya,
>To have the right click do something to a list is probably not considered good practice. However, I frequently use the right click on lists to popup a shortcut menu (ala windows style) which has options such as add, edit, delete, print, etc. Then depending on the choice (if any) made by the user, I will make a call to a method which in the delete case could loop thru the list box deleting selected entries.
>
There is the question: how do you hold all selected items, if RightClick() unselected them except for the one?

Anyway, I switched to del button instead of RightClick in this particular class. The idea of popup menu is good, I'll think about it. BTW, if you can send me a little example, how do you invoke this popup menu and operate on my work e-mail nnosonov@thewarrengroup.com, it would be great. I hope, I don't ask too much... If so, just don't bother.

TIA
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