Resizable grid of thumbnails

Henk van der Velden henk at ludisstudio.com
Thu Jun 10 03:07:31 EDT 2010


Hi Simon,

I don't think there is an option like that in Rev, unless of course you put your pictures in a textfield ('imagesource' in Rev Dictionary).

But showing your thumbnails in a grid doesn't need to be that difficult. When every picture is contained in a square, all you need to do is divide the width of the stack by the width of the square, and then truncate the resulting value. That way you get the number of pictures on a row, and then, using a double loop, every picture is positioned.

HTH,
Henk



On 09 Jun 2010, at 06:05, use-revolution-request at lists.runrev.com wrote:

> One of my many faults is a lack of intense math skills.  So when I hit
> the math *wall* I ask for help or samples...
> 
> In this case, I'm looking for a sample stack that can show 20+
> thumbnails and be resizable.  As the stack is scaled up (wider) the
> top row of thumbnails increases thus reducing the overall number of
> rows which displays the thumbnails.
> 
> Ironically, in HTML I only have to assign the style "float: left;" to
> each thumbnail to achieve this.
> 
> Is there something similar or does it require gobs of math to
> calculate the loc of all thumbnails?  If so, anyone have a good
> sample?




More information about the Use-livecode mailing list