Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox little problem
Message
From
09/11/2001 10:41:00
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00579643
Message ID:
00579661
Views:
41
This message has been marked as the solution to the initial question of the thread.
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?

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)
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform