Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox--partially cannot select
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00121074
Message ID:
00121872
Views:
17
>Hi Jim,
> I checked for the leading slash, but that is not the problem, because even when I scroll, it's still the top two rows that are not selectable.
> Anyway, I ran tests with Coverage and am stymied. Here are my results, tell me what you think:
> 1. I clicked on the bottom row of the listbox which was selectable, as expected. Coverage showed these methods fired:
> a. listbox.when
> b. listbox.GotFocus
> c. SetLastUserActivity (called by listbox.GotFocus)
> d. listbox interactive change
> e. listbox when again (!?)
>
> 2. I clicked on the top row of the listbox which refused to be selected. Coverage showed these methods fired:
> a. listbox.when
> b. listbox.GotFocus
> c. SetLastUserActivity
> --and that's all!!
>
> The InteractiveChange method did not fire!
>

Cahim,

The listbox when fires twice when the listbox gets focus from somewhere else, it fires once before the listbox gets focus and then again when the value of the listbox changes.

The second series of events is telling you that the listbox never got a vlaue assigned during the click on the top row. The when and gotfucs fired as the list got focus, but the when and interactivechange did not fire because the value didn't change. Essentially, the event sequence verified what you are seeing. The question is why didn't the value change?

What is the rowsource and rowsourcetype for the list? Are you populating the list with AddItem() or AddListItem()?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform