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
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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 
automatically to the amount of text in the field.  Create a scrolling 
field with the formattedHeight of the text = to the the field's 
adjusted height...there will be no visible thumb.  Add one line of text 
and you have a fat thumb that gets slimmer with each line added to the 
field.


If you are using a scrollBar control instead of a scrolling field, this 
works for moi:


set the thumbSize of scrollBar Index Scroll to 
trunc(maxSize*(visibleLines/linesOfImages))

get visibleLines * imageHeight
set the pageInc of scrollBar Index Scroll to it
set the lineInc of scrollBar Index Scroll to imageHeight

Rob Cozens
CCW, Serendipity Software Company

And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee.

from The Triple Foole by John Donne (1572-1631)

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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 really want the scroll limited to one pixel in these cases?

lineInc should = the height of one line of scrolling text or objects

pageInc should = lineInc * the number of visible lines of text or 
objects


Rob Cozens
CCW, Serendipity Software Company

And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee.

from The Triple Foole by John Donne (1572-1631)

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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  Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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 visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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 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.  When I try this:

  set the thumbSize of sb myScroll to \
   trunc(endValue of sb myScroll*(height of fld 1/formattedHeight of fld 1))

...the last lines of the field are not accessible.  Guess I'm wondering what
the correct proportion is.

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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 like:

endValue = 100*( (height of fld 1/(formattedHeight of fld 1 - height of 
fld 1))+1)

thumbSize = endValue *(height of fld 1)/(formattedHeight of fld 1)

For example, if you formattedHeight is 150 and your field is 50, you 
get:


endValue = 100 * (1 + 50/100) = 150
thumbSize = 150 * (1 / 3) = 50

And so you have a thumb which is 1/3 the height of the scrollbar - same 
as the field is 1/3 the height of it's contents.


Hope that helps - !

- Brian



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 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.  When I try this:

  set the thumbSize of sb myScroll to \
   trunc(endValue of sb myScroll*(height of fld 1/formattedHeight of 
fld 1))


...the last lines of the field are not accessible.  Guess I'm 
wondering what

the correct proportion is.

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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 contents,
other times, the scroll falls short.  Not sure what's going on (bug in my
code, bug in Rev, incorrect proportion, etc).  I'll continue to try to
figure it out.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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, 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 
contents,
other times, the scroll falls short.  Not sure what's going on (bug in 
my

code, bug in Rev, incorrect proportion, etc).  I'll continue to try to
figure it out.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution