scrolling groups programatically?!

Ken Ray kray at sonsothunder.com
Tue Oct 16 19:35:11 EDT 2007


On Tue, 16 Oct 2007 17:13:47 -0300, Andre Garzia wrote:

> Hello Friends,
> 
> its me again, I am very verbose today. I have a big group whose rect is set
> to a small area of the stack. I can use the scrollbars that rev
> automatically adds to it to scroll the group. Now, if I want to code my way
> to scroll the group, how should I proceed? I have a find function that finds
> the correct group element that should be displayed, I want to scroll so this
> element becomes visible...
> 
> I tried checking the thumbpos of the group, to no effect, I was just wishful
> thinking. Is there a way to fiddle with groups scrollbar?

set the vScroll of <groupDescriptor> to <value>
set the hScroll of <groupDescriptor> to <value>

HTH,


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list