DesktopContainer layout - where is it?

I subclass Container, call it “MyContainer”, and set its Super to DesktopContainer. The documentation says “add your controls directly to the Container in its layout”, but I can’t find any way to see the layout of the container in the IDE - there’s no layout button. What am I missing?

If I select an instance of MyContainer in a Window, there’s a tooltip on the Layout button saying “Go to MyContainer1’s” Layout", but pressing it does nothing.

Xojo 2023 r1.1

Like windows, containers can’t inherit layout so subclasses are not allowed in the traditional sense.

If you want a common parent for a series of containers, do it this way:

  1. Make a new generic class (myContainer)
  2. Set it’s super to DesktopContainer
  3. Add your common code to this class
  4. Drag a desktopContainer to the navigator and set its super to myContainer.
1 Like

THAT’s what I was missing - I kept trying to drag a Container to my window in the IDE instead of into the Navigator. Thanks!