>I have an issue with a scrollbar on a form, that does not properly display as soon as I programmatically move the container.
>
>On the form is one container object which could be higher than the form, and then the scrollbar appears at the right of the form to move the container up or down.
>
>As soon as I change the top position of the container, sometimes the scrollbar disappears, or it does not refresh its position, so using the scrollbar it becomes impossible to move the container back to its original position.
>
>I do not change the height of the container, only the top property. I also tried THIS.DRAW() on the form without success.
Normally scrollbars will show only if they are needed (There is something to scroll towards). By changing position of objects scrollbars
might react. So little 'cheat' is to add one dymmy object (short line or a little shape in a color of background) right below bottom of the form and outside visible form boundaries. It will force scrollbar(s) to show all the time, whereas you can move your object around without any side effects.
HTH
Sergio