Page 1 of 1

how scroll up or down. or how scroll a line top

Posted: 16 Aug 2017 06:57
by drjs5x
hi dear master coders.
possible scroll pane script.
how scroll up or down.
or
how scroll a line top.
http://prntscr.com/g91a2x

example focused line 118.
118 focused line scroll top. script.
focused line top scroll.
possible?
or direct scroll up . scroll down. scroll top. commands?
thanks.


thanks all.

Re: how scroll up or down. or how scroll a line top.

Posted: 16 Aug 2017 09:20
by highend
or direct scroll up . scroll down. scroll top
Afaik not possible. XY would need to be able to return
- The line number of the current visible first / last item
or
- All visible items (more effort to calculate the necessary positions)

What you can do: move the focused item into view with

Code: Select all

sel "+0";

Re: how scroll up or down. or how scroll a line top.

Posted: 16 Aug 2017 12:48
by drjs5x
thanks for reply.
i fixed . solutuion script:

$zzz= get("FocusedPos", "top=1");sel -1, , 1;sel $zzz;

%100 working.

thanks for help. dear highend. :appl: :appl: :appl:

Re: how scroll up or down. or how scroll a line top.

Posted: 16 Aug 2017 13:07
by highend
get("FocusedPos", "top=1")
Btw, "top=1" isn't an argument :whistle:

Re: how scroll up or down. or how scroll a line top.

Posted: 16 Aug 2017 15:07
by drjs5x
but worked.. fixed code: $zzz= get("FocusedPos");sel -1, , 1;sel $zzz;
thanks for highend :whistle: :oops:

%100 working.