Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding out what records are visible in a grid...
Message
De
07/01/2000 13:25:12
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
07/01/2000 13:17:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314539
Message ID:
00314634
Vues:
31
OK, if the RelativeRow goes negative if above the view area, I'm in.

Thanks

Rex

>Rex,
>Below calculation might not be accurate for I haven't tested it throughly with horizontal scrollbar on/off. If it's correct or correct one is found then we know the total number of rows that could be visible, right ?
>Get the relativerow, say it's n, if n < 1 then it's above the visible area.
>Better gimme some time to test this :)
>Cetin
>
>>Cetin,
>>
>>I've got code to tell is a record in below the current visible grid area, but how do I tell if it is above the visible area?
>>
>>TIA
>>
>>Rex
>>>>Is there a way to tell what table records are presently visible in a grid?
>>>>
>>>>TIA
>>>>
>>>>Rob.
>>>
>>>
I use grid math for it. Something like this :
>>>
>>>with this
>>>lnRecsVisible = int((.height - .headerheight)/.rowheight)
>>>endwith
>>>
>>>Current record could be found by grid.relativerow. So it's possible to calculate how much to skip backward, forward to get visible top, bottom. Of course it's not easy if buffering is on and rec pointer movement is a problem.
>>>Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform