Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatic scroll in listbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00500340
Message ID:
00500360
Views:
19
>Hello,
>
>I try to do the following:
>I instantiate a listbox (rowsource is an array) having about 7 items visible.
>The default selected item is in the middle of the array, but in the listbox it is always the last visible item. I would like to have it scrolled three items up so the selected item is in the middle of the visible items.
>
>I would like to do a programmatic scroll, but I do not how to do this in a list box or whether it is possible at all.
>
>Any ideas?


How did you "select" the default item?
Try something like this in the INIT of the form:
this.lstBox.listindex = x
*!* x is the index number (should be the same number as in the array) 
*!*  you wish to be the default selected item
HTH,
- Erik Niese-Petersen

Crazy Dane in USA.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform