application.createWindow problem

Hi All,
I’m trying to create a Smart Client application that works in the same way to a VFP application ie the application has a main screen into which you create a menu and toolbar, then any windows that are opened are contained within that window, but they can be moved around and minimised etc.

I thought I was going down the correct path but any windows created are not contained within the main screen.

function OnSolutionOpen() {
	// Create the new application menus.
	CreateMenu();

	var mainAppWindow = application.getWindow();
	mainAppWindow.title = "Trains";

	// Open the startup screen.
	globals.mainBooksWindow = application.createWindow("frmBooks", JSWindow.DIALOG, mainAppWindow);
	// Show the specified form in the just created window. 
	forms.frmBooks.controller.show(globals.mainBooksWindow);

I think I must be misunderstanding how Servoy works so if anyone can shed some light I would appreciate it.
Many thanks
Caroline

What you are trying to do is currently not supported (Smart Client windows contained in other windows).
Dialogs (JSWindow.DIALOG) are more dependent on their parent (minimize behavior, the way the OS shows them, …), but are not enclosed in it. Windows (JSWindow.WINDOW) are more independent.

You can add a feature request for (internal) enclosed smart client windows here.