derez, thanks for your code. I like this because now it is a really worm wheel. It is useful when you have numbers from 0 to 9. I will study your code.
I am also working on this issue, this last days.
I'm trying to do everything with parameters: n panels of n wheels each, from a minimun number to another maximun, positive and negative...
I have little experience in B4A yet, and I have a problem.
To be more comfortable, like you, I make the panels in the designer (only need the label for each pannel, others things are make by code). Because it can be more than one panel I would like to make these labels with indexes "label (num_panels)", but I think I can not do so (from the designer).
I tried other formulas, but without much success. The idea would be to create a label with code index and copy the characteristics (height, width ...) of each label's designer.
I tried something like this, but does not work:
Activity.LoadLayout ("main")
'convert Lbl_scroll_P1, P2, P3 from Designer to Lbl_scroll_P(n_panels)
Lbl_scroll_P (0). Left = Lbl_scroll_P1.Left
Lbl_scroll_P (0). Top = Lbl_scroll_P1.Top
Lbl_scroll_P (0). Width = Lbl_scroll_P1.Width
Lbl_scroll_P (0). Height = Lbl_scroll_P1.Height
Lbl_scroll_P (1). Left = Lbl_scroll_P2.Left
Lbl_scroll_P (1). Top = Lbl_scroll_P2.Top
.....
.....
The label "Lbl_scroll_P1" is what I have in the designer and try to copy it into Lbl_scroll_P (x).
Anyone know any way to copy the properties of an object and put them in another object? (in this case a label)
As soon as I finished it I will post the code.
Here there is a sample image.