Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrolling in the Form
Message
 
À
02/05/2000 02:50:15
Shaheer Shamsi
Boston Education & Software Technologies
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00364982
Message ID:
00365061
Vues:
17
>Hi there
>
>I have a form which has lot many fields for which I have to include a vertical scroll bar in the form
>There is a slight problem : When I am on the second last field the last field on the form is not visible to me can I write some piece of code for which when I loose the focus from the second field and jump to the last field the form should automatically scroll without clicking the scroll bar with mouse.
>
>Any suggestions in this regard will be highly appreciated.
>
>Thanx in advance
>Shaheer Shamsi

Shaheer, in VFP6 form.SetViewPort() method controls left and top coordinates of the visible part of form.

You can put

thisform.SetViewPort(1, newTopPosition)

into textbox2.LostFocus()
Give newTopPosition the value which allows you to see the last field.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform