Page 1 of 1

Group Scrolling

Posted: Fri May 25, 2018 1:59 am
by jwtea
Hello everybody,

i got a group with a scrollbar in card 1 and everytime i scroll the scrollbar to the bottom and when i go to card 2 then go back the card 1, the scrollbar is still in the same position....

How can i make it to the top when i re-enter the card??

Re: Group Scrolling

Posted: Fri May 25, 2018 7:03 am
by bogs
Not on a dev machine, but off the top of my head wouldn't it be something like (psuedo code) -

Code: Select all

on openCard
	set the thumbPosition of scrollbar x to 0
end openCard

Re: Group Scrolling

Posted: Fri May 25, 2018 7:15 am
by jwtea
Hello bogs, thanks for your reply!

How to know my name of the scrollbar in my group???

As i just go to the group's property and tick "Vertical Scrollbar" ~ ~ ~

Re: Group Scrolling

Posted: Fri May 25, 2018 10:01 am
by Klaus
Hi jwtea,

the "build-in" scrollbars of objects (fields and groups) do not have a name of their own.
I think in your case you need to reset THE SCROLL (VSCROLL or HSCROLL) of the group!

You need something like this:

Code: Select all

on preopencard
  set the VSCROLL of grp "your group here" to 0
end preopencard
Best

Klaus

Re: Group Scrolling

Posted: Fri May 25, 2018 10:15 am
by jwtea
Hello Klaus,

THANKS!!! you solved my problem :D 8)

Re: Group Scrolling

Posted: Fri May 25, 2018 3:37 pm
by bogs
Sorry jwtea, Klaus has it right, I misunderstood the question. Thanks Klaus :D