PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WM21 - tall window scrolling
WM21 - tall window scrolling
Iniciado por guest, 20,dic. 2017 14:27 - 3 respuestas
Publicado el 20,diciembre 2017 - 14:27
I have a window with 4 tables stacked vertically followed by a button. I've changed the height of the window so all the controls fit and checked the "Automatic scrollbar" option for the window. Everything works great except when the window has been scrolled to the bottom and the button is pressed, I would like to automatically scroll back to the top. The only way I've found to do this is to place an edit control at the top of the window and do a Setfocus(). Is there a better way?

Thanks, Bill
Publicado el 20,diciembre 2017 - 16:50
I've found that by moving the edit control beyond the top edge of the window gives me the scroll up that I need without a cursor showing in the edit control, but....is there a better way of scrolling up a window that has automatic scrolling?

Bill
Publicado el 27,diciembre 2017 - 12:12
Hello Bill,

I did this with a looper, have a look at this:
https://doc.windev.com/en-US/…

Regards,
Rik
Publicado el 27,diciembre 2017 - 15:47
Thanks Rik! I think I looked at that function before but didn't think it would apply to an entire window. It does and works perfectly on both android and ios. Thanks!

Bill