mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
The major problem with the code you posted is that you are trying to open the tool window in the constructor of the main window. This doesn't work because at that point the main window hasn't been opened yet.
A better solution is to add this function to the main window:
However, if you want the window to be resticted to the borders of the main window it is a different problem, more like MDI. There is no intrinsic way of doing this in Upp, though you can imitate it using a normal ctrl with a 'fake' window frame.