? scrolling grouped Images

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

? scrolling grouped Images

Post by Traxgeek » Wed Jun 19, 2013 11:58 am

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.
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: ? scrolling grouped Images

Post by Simon » Sat Jun 22, 2013 4:33 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Re: ? scrolling grouped Images

Post by Traxgeek » Sun Jun 23, 2013 4:01 pm

Hi Simon,

Valid point !! My brain's going soft !

Thanks a mil Simon. Appreciated.

Regards.
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

Post Reply