Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatic scroll in listbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00500340
Message ID:
00500360
Vues:
17
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform