Page 1 of 1

make list field auto scrolling

Posted: Sat Dec 08, 2012 12:35 pm
by ivaho
Hi,

I have a list filed that gets his updates from another program, but how to make it scroll automaticly so it keeps displaying the last line that was added.

Re: make list field auto scrolling

Posted: Sat Dec 08, 2012 1:15 pm
by Klaus
Dag Ivaho,

...
set the scroll of fld X to (the formattedheight of fld X - the height of fld X)
## Should do the trick
...

Best

Klaus

Re: make list field auto scrolling

Posted: Sat Dec 08, 2012 1:16 pm
by bn
Hi ivaho,

the easiest way to scroll to the bottom of a scrolling list field is to set its vScroll to a ridiculous high number like

Code: Select all

set the vScroll of field "myListField" to 100000
after adding the new data

Kind regards
Bernd

Edit: Klaus was faster...
two ways of achieving the same.

Re: make list field auto scrolling

Posted: Sat Dec 08, 2012 1:34 pm
by bn
Hi ivaho,

Disclaimer: advertising for a free product by poster :)

if you want to add alternating line colors to your list field you could easily do so by looking at:
alternating line colors.png
alternating line colors.png (22.82 KiB) Viewed 3419 times

http://revonline2.runrev.com/stack/661/ ... ipes_0_0_5

Kind regards
Bernd