Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5 ListBox Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00049386
Message ID:
00050022
Views:
41
>>I have a VFP5 listbox (original form, not subclassed)
>>
>>RowSourceType: Alias
>>RowSource: PLATE.DBF
>>Multiselect: TRUE
>>
>>The listbox works perfectly when it first gets focus, including selecting with SHIFT or CTRL keys. However, if I focus on another control and come back to the listbox, all of the previously selected items are unselected even if I have the CTRL key presssed. I realize that focussing on another control and then clicking on the list box WITHOUT the CTRL key pressed will un-select all items except the one clicked on. This problem is different.
>>
>>This is NOT "standard windows" and it is not the way VFP3 handled the situation. In VFP3 I had 4 list boxes and users could move back and forth selecting/unselecting values in each.
>>
>>Advice? Work-around?
>>
>>TIA
>>Barbara
>
>Are the items actually deselected, or just loose highlight ? If just loosing highlight, maybe you can somehow re-highlight in gotfocus ?

There is an article FoxPro Advisor August 97 that says the items are de-selected. If you have a copy, see page 68, Final notes heading. There is also some code to create a SmartListBox.

HTH
Glenn
Glenn
Previous
Reply
Map
View

Click here to load this message in the networking platform