Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding nRowsScrolled
Message
De
30/12/1999 17:46:15
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgie, États-Unis
 
 
À
30/12/1999 11:18:45
Loren Fedje
Loren D. Fedje & Associates Ltd.
Chilliwack, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00310430
Message ID:
00310718
Vues:
19
Loren,

I think the form's ViewPortTop property will give you the information you need. It returns the topmost coordinate of the form visible in its viewable area.
The relative position of the top of the form would be 
    -ThisForm.ViewPortTop.  
The top of the container would be 
    ThisForm.Container.Top - ThisForm.ViewPortTop. 
The position of your mouse relative to the top of the form would be 
    MROW(ThisForm.Name,3) + ThisForm.ViewPortTop
David.


>I have created a form with a container that will hold a bitmap of a Map. The map is 550wx1000h pixils in size. In order to see the whole map I required a scrollbar on the form.
>
>I want to have the ability to plot an object on the form by right clicking on the form. The left and top positions of the object are stored in appropriate fields along with the map name. When the user next views the map the object shows the location of the property (property in this context means real property like in land).
>
>There is no problem with what I am attempting to do unless I use the scroll bar to to move to the lower portion of the map. What is required is mrow('',3)+(the number of pixils the scroll bar has moved down). In other words I need to find the relative position of the top of the container after scrolling down.
>
>Does anyone have any ideas?
David.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform