Page 1 of 1

? scrolling grouped Images

Posted: Wed Jun 19, 2013 11:58 am
by Traxgeek
HI,

I'm working with a couple of images that I've placed in a group.

I've placed the images in a group because I want them to maintain their size when they are too large for the allocated screen area and,then, to be able to move around each one using the group's integral scroll bars. I make only one image visible at any one time, the other image (the one I'm not interested in at the time) is made invisible using the 'set visible to false' type of script.

My problem is that the scroll bars appear to take their 'max scale' from the largest of the images and then retain their 'scale' (max value / range) between image changes...

If I display the smaller image first, all is well (the scrollbars have max values that suit that particular image).
Similarly, if I display the larger image first, the scrollbars configure themselves for the larger size (I can move around the full extents of the image)
Should I display the smaller image and then switch to the larger image, the scrollbars behave as expected; in that they reconfigure themselves for the larger image upon displaying that larger image... (and I can move around the full extents of the image)

BUT after displaying the larger image, when I switch back to the smaller image the scrollbars remain configured for the larger image... i.e. moving a scrollbar scrolls the smaller image much more rapidly and then stops having any effect after (maybe / around) half of the scrollbar's length / range. I can still scroll around the whole of the smaller image BUT the movement is much more rapid and the scrollbars have no effect after the edge of the image has been scrolled to although the scrollbar itself has much further to scroll...

Any ideas as to how to reset the scrollbars when switching back to the smaller image ? I trap the switching between the images (so that's not a problem), I simply haven't been able to find a way to reset the 'max' value of the groups integral scrollbars... with individual scrollbars this is possible (just by setting the 'max' property) but I don't see how to do this with the integral scrollbars of a group.

Ideas ? Pointers ?

Thanks a mil.

Regards.

Re: ? scrolling grouped Images

Posted: Sat Jun 22, 2013 4:33 am
by Simon
What about using 2 groups each with an image in it?
Since you hide and show the images why not apply that to the groups?

Simon

Re: ? scrolling grouped Images

Posted: Sun Jun 23, 2013 4:01 pm
by Traxgeek
Hi Simon,

Valid point !! My brain's going soft !

Thanks a mil Simon. Appreciated.

Regards.