Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox and listindex
Message
De
05/01/2004 09:12:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00863734
Message ID:
00863833
Vues:
11
Hi Terry,

when the user is on page 1 and they press pagedn to move to page two, I would like the listbox to be at the TOP of the list by default. This happens when the user is on page 3 and he/she presses pageup to move to page2 but not the reverse...

thanks for the other idea, I'm testing it....

>>I have a form of many pages and each page has at least one listbox on it. All of the listboxes have a rowsourcetype of 6 - Fields and a variable is the control source. When the user presses pageUp and goes to the next page the listbox is at the top of the list, but when the user presses PageDwn and goes to the next page the listbox is at the bottom of the page (end of file). If the user exits the last control on the previous page and moves to the next page the listbox is at the bottom of the list. What is causing this? I have tried moving the record pointer to the top of the table in the page's setfocus to no avail and even setting the variable's value to 1. Any ideas? I would like the listboxes to always start out at the top of the list when the page first gets focus. Setting listindex = 1 doesn't seem to work either...
>
>When the user presses PgDn in the listbox, should it go to the bottom of the list (does it by default), or should the PgDn slect the "next" Page object?
>
>>Also, when the listbox does NOT have the focus I would like NONE of the rows to be highlited. Is there a way to turn that highlite off like there is in grids in VFP8?
>
>
?empty(Myform.Mylist.List(Myform.MyList.ListIndex)) && True when no selection
>MyForm.Mylist.Selected(Myform.Mylist.ListIndex)=.f. && Set selected off
>
>For multiselects, you'd have to roll through the entire list. With the OCX "Listvew", there is a property
>
>
>>
>>TIA,
>>Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform