Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Panning a list box
Message
From
20/03/1998 11:28:13
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
 
To
20/03/1998 00:36:33
Martin Kay
Databased Intelligence, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00085851
Message ID:
00086022
Views:
37
>>I wrote a progressive search class that look at the ListItem text:
>>ei. In the InteracticiveChange Event of a textbox:
>>
>>FOR x = 1 TO this.parent.lstShow.ListCount
>> IF UPPER(ALLTRIM(this.value)) == ; UPPER(SUBSTR(this.parent.lstShow.List(x), 1, ; LEN(ALLTRIM(this.value))))
>>
>> this.parent.lstShow.Selected(x) = .T.
>> EXIT
>> ENDIF
>>ENDFOR
>>
>>The found item is selected, but the window does not pan down to the selection. Is anyone aware of how to make the window pan down to a ListItemIndex or to a selection?
>>
>>Ed
>Ed,
>
>I think you need to set:
>
> this.parent.lstShow.ListIndex = x
>
> This will make the selected row the "current" row for the listbox.
>
>-Marty Kay-

That did the trick. Thanks Martin
Previous
Reply
Map
View

Click here to load this message in the networking platform