Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Scrollable Forms, LTD.
It was like a dream come true! I've been trying for a while to make a portion of a form scrollable, using a large container and up/down command buttons and Up/Dn arrow keys on Form.KeyPress()which, when clicked / pressed moved all the controls within the large container up or down. Pretty slow! Then I discovered the ViewPort concept with the Form.SetViewPort(nleft, ntop) method. So I got rid of the large container and reinstantiated all the objects in the scrollable form. Works like a dream, if.. the bottom coordinate of the 'bottommost' object exceeded a certain value (which is 2 * screen dimension, i.e. if the resolution is 800 x 600 and the bottom of the control is at 1201 or lower) the scroll bars disappear, although the Form.ScrollBars property returns the initial value as if the scrollbars were there !?!
I understand that the forms were made scrollable in VFP6 to permit the hosting and functionality of ActiveDocuments, but why would there be a limitation, or is it?
Any comments, suggestions of workarounds greatly appreciated.
TIA
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement