Me.Close '<- remove the button
Var board As New ContainerBoard '<- super is DesktopContainer
board.Left = 10
board.Top = 10
board.Width = Self.Width -10*2
board.Height = Self.Height -10*2
'Window1.ButtonCreateUI.Pressed, line 10
'Parameter "control" expects Class DesktopUIControl, but this Is Class ContainerBoard.ContainerBoard.
Self.AddControl(board) '<- add to window ?
Since DesktopContainer isn’t a DesktopUIControl, I believe you’d like to do this
Var board As New ContainerBoard '<- super is DesktopContainer
board.Left = 10
board.Top = 10
board.Width = Self.Width -10*2
board.Height = Self.Height -10*2
board.EmbedWithin(Self, board.Left, board.Top)
But I agree @Xojo (@Geoff_Perlman) should add another Method DesktopWindow/DesktopContainer.AddContainer to be consistent in naming and across other supported targets.
DesktopContainers are still special in many ways, and I’d doubt we’ll see that change significantly in the near future. They are subclasses of DesktopWindow, and many of their references that you can access still take you back to something like EmbeddedWindowControl, such as when iterating over controls on a DesktopWindow.