Discussion:
Set of ContainerControls
Jean-Luc Arnaud
2017-04-13 10:12:37 UTC
Permalink
Hi all,

It seems like it's not possible to create a set of containercontrols.

Am I wrong?

Xojo2017r1 Mac

TIA for your replies
--
Jean-Luc Arnaud


_______________________________________________

Xojo forum:

https://forum.xojo.com/
Lars Jensen
2017-04-14 02:08:33 UTC
Permalink
When I try to create a set of container controls, the IDE says
"ContainerControl arrays are not supported", so I guess you are not wrong.

(Unless it has changed since 2015r3.1.)

lj
Post by Jean-Luc Arnaud
Hi all,
It seems like it's not possible to create a set of containercontrols.
Am I wrong?
Xojo2017r1 Mac
TIA for your replies
--
Jean-Luc Arnaud
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum:

https://forum.xojo.com/
Jean-Luc Arnaud
2017-04-14 08:00:37 UTC
Permalink
Thanks, Lars.

Yes, indeed, I'm afraid I'm not wrong. Xojo2017r1 doesn't say "not
supported", this functionality (array of containers) simply does not exist.

I'm curious to know why ...

Jean-Luc Arnaud
Post by Lars Jensen
When I try to create a set of container controls, the IDE says
"ContainerControl arrays are not supported", so I guess you are not wrong.
(Unless it has changed since 2015r3.1.)
lj
Post by Jean-Luc Arnaud
Hi all,
It seems like it's not possible to create a set of containercontrols.
Am I wrong?
Xojo2017r1 Mac
TIA for your replies
--
Jean-Luc Arnaud
_______________________________________________
https://forum.xojo.com/
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum:

https://forum.xojo.com/
Marnaud
2017-04-14 09:29:41 UTC
Permalink
Yes, indeed, I'm afraid I'm not wrong. Xojo2017r1 doesn’t say "not supported", this functionality (array of containers) simply does not exist.
For what it’s worth, there’s a feature request on feedback:
<feedback://showreport?report_id=4169>

And, also, a bug report where Norman says you were not wrong:
<feedback://showreport?report_id=41730>
_______________________________________________

Xojo forum:

https://forum.xojo.com/
Jean-Luc Arnaud
2017-04-14 11:44:45 UTC
Permalink
Great!

Thanks, Arnaud.

Jean-Luc Arnaud


_______________________________________________

Xojo forum:

https://forum.xojo.com/
Jon Ogden
2017-04-14 11:46:30 UTC
Permalink
This post might be inappropriate. Click to display it.
Jean-Luc Arnaud
2017-04-14 13:09:18 UTC
Permalink
Ok, Jon, many thanks for the trick.


Jean-Luc Arnaud
Post by Jon Ogden
1.) create the container control you want
2.) on the page where the containers will exist, create a property that is an array of that type of container.
3.) Set up a loop for the number of containers you want to create.
4.) Create a new instance of the container, append it to the array and use EmbedWithin to add the container to the window.
5.) Continue the loop until you have created all desired containers.
This will effectively do what you want. You can now reference each instance of each container in your array.
Containers are not really controls but are more like Windows. You can't create a control array of windows either.
And this way is actually better than a control array because you can use array functions on the array like Ubound. You can't do that with a control array.
Sent from my iPhone
Post by Marnaud
Yes, indeed, I'm afraid I'm not wrong. Xojo2017r1 doesn’t say "not supported", this functionality (array of containers) simply does not exist.
<feedback://showreport?report_id=4169>
<feedback://showreport?report_id=41730>
_______________________________________________
https://forum.xojo.com/
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum:

https://forum.xojo.com

Continue reading on narkive:
Loading...