I have a rectangle and a button in a window, and the button’s Action event creates instances of my own button class (based on a canvas) which I want to line up as a row in the long, thin rectangle. I can’t pre-create these in the layout in the IDE as their number depends on user actions.
But although these buttons are created, they remain invisible. I find that although I set the parent to the rectangle, in the debugger the buttons’ parent stays stubbornly at Nil. I also see that their Window property is Nil, too. They have a width and a height and are not invisible or transparent.
How do I make these appear? Or do I have to have a specimen of my button in the rectangle in the IDE, and then clone it? I’m trying to avoid Control Sets.