Re: Re: Setup a Scrollbar?

2006-04-21 Thread Malte Brill
Rob wrote: lineInc should = the height of one line of scrolling text or objects pageInc should = lineInc * the number of visible lines of text or objects Thanks rob! of course you are right. :-) All the best, malte ___ use-revolution mailing list

Re: Setup a Scrollbar?

2006-04-20 Thread Rob Cozens
Hi Scott, My problem is getting the thumb correctly sized so, for example, if the field holds 14 items and the lines number 15, you get a fairly large thumb, instead of the tiny version when its size is set to 1. If you are working with a scrolling field, the thumbSize adjusts

Re: Setup a Scrollbar?

2006-04-20 Thread Rob Cozens
Malte, Scott, et al: pageInc: 1 lineInc: 1 From Rev Dictionary: Use the pageIncrement property to change the amount that is scrolled when the gray region is clicked. Use the lineIncrement property to change the amount that is scrolled when the scrollbar arrows are clicked. Do you

Setup a Scrollbar?

2006-04-19 Thread Scott Rossi
Is there a document/recipe somewhere to set up the properties of a scrollbar such that its thumb correctly syncs with the scroll of a field? I know I've done this before somewhere but for some reason I seem to be off on a current project in how I'm figuring the start and end values. Thanks

Re: Setup a Scrollbar?

2006-04-19 Thread Malte Brill
Hi scott, try: startValue: 0 endValue: formattedheight of fld - height of fld - margins of fld (if 1 no scroll) pageInc: 1 lineInc: 1 thumbSize: 1 Hope that helps, Malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please

Re: Setup a Scrollbar?

2006-04-19 Thread Scott Rossi
Recently, Malte Brill wrote: try: startValue: 0 endValue: formattedheight of fld - height of fld - margins of fld (if 1 no scroll) pageInc: 1 lineInc: 1 thumbSize: 1 Thanks Malte -- this is pretty much what I tried. My problem is getting the thumb correctly sized so, for example, if

Re: Setup a Scrollbar?

2006-04-19 Thread Brian Yennie
Scott, I think the trick is that you have to also increase the endValue when you increase the thumbSize (not very intuitive, I know). Try this. Set: startValue: 0 endValue: 100 Now scroll all the way down and check the thumbPosition... it's 67, not 100. So you probably want something more

Re: Setup a Scrollbar?

2006-04-19 Thread Scott Rossi
Recently, Brian Yennie wrote: I think the trick is that you have to also increase the endValue when you increase the thumbSize (not very intuitive, I know). Thanks Brian. Unfortunately, I'm still getting inconsistent results. Sometimes the scrollbar scrolls correctly to the end of the field

Re: Setup a Scrollbar?

2006-04-19 Thread Brian Yennie
Hrm. Any chance it's a rounding / trunc problem? If so you could increase the resolution by jumping from a 0-100 base scale to something more like 0-10 to make the truncating negligible. How much is getting cut off / what are your actual values? Just a shot in the dark...! Recently,