Stacking ContainerControls and using a scrollbar

What is the easiest way to stack ContainerControls, one on top of the other and then invent a scrollbar that scrolls through the Container Controls (if necessary). Any good examples, specific to stacked ContanerControls?

Thanks

You mean to kind of get your own list view? Paul has done a webinar on this, I think.

Take a look at:

Examples/Desktop/ContainerControls/DownloadContainer

Also see the Container Controls in Desktop app webinar:

http://youtu.be/wMhaX0ZCK5A

[quote=79299:@Paul Lefebvre]Take a look at:

Examples/Desktop/ContainerControls/DownloadContainer

Also see the Container Controls in Desktop app webinar:

http://youtu.be/wMhaX0ZCK5A[/quote]
Thanks appears to be just what I am looking for.

[quote=79299:@Paul Lefebvre]Take a look at:

Examples/Desktop/ContainerControls/DownloadContainer

Also see the Container Controls in Desktop app webinar:

http://youtu.be/wMhaX0ZCK5A[/quote]
Conveniently, I did not have to make many changes to my project but add little bits in and it seems to work.

Thanks :slight_smile:

Hope you learnt the techniques rather than just harvested someone else’s code!!! :slight_smile:

I already worked some stuff out by myself and got everything to work. I stacked the ContainerControls myself. I just implemented the ability to scroll and added a canvas to embed in. But thanks anyway.

I noticed that my code style is different to Paul, in that Paul get the height of all of the items together with:

containers.ubound * container.height

Next time I come across this, I may use this style (depends on what first comes to my mind). I wrote my code like this instead:

containers(containers.ubound).top + container.height

Interesting to see how people have different approaches to coding, isn’t it? I wonder which one performs better. Would the top already be pre-calculated which makes my code more efficient or are there other considerations to make? It’s not important, just curious.

And to win the “slowest option” award, my code loops through all the containers and adds the height of each one. (I do it that way as each row can be a different height.)

Mine does this too but I am have to loop through the controls anyway.

[quote=79299:@Paul Lefebvre]Take a look at:

Examples/Desktop/ContainerControls/DownloadContainer

Also see the Container Controls in Desktop app webinar:

http://youtu.be/wMhaX0ZCK5A[/quote]
Hey, the example project seems to be really buggy and so buggy that for the way my app works the bugs need to be fixed. I think there something wrong with the scroll. I spent ages trying to correct the maths but then I discovered the same bug occurs with your example on Windows.

Thanks