Window and child window

BlitzPlus Forums/BlitzPlus Programming/Window and child window

Hello :)

Do you know how to create a child window ? I have created a standard window with createwindow now i would like to create an another one, but a child window of my first.

For example, I create a window named my_window. Now I want to create an another window named new_window. I want new_window to be a child of my_window...

Thanx a lot :)

Not sure if I fully understand what you're trying to achieve, but disabling my_window prior to creating new_window will make new_window a modal child form. When I say modal, I mean control will not pass back to the parent form (my_window) until new_window is closed.

my_window%=CreateWindow("my", 10, 10, 100, 100, 0, 15)
DisableGadget my_window ; Only need this if you want a modal child
new_window%=CreateWindow("new", 210, 10, 100, 100, my_window, 15)

Note: my_window is passed into the "group" (think parent) property on the second CreateWindow statement.

Hope this helps...

Yes i have done that, but i would like the child window stays into the main window (like in word or excel softwares).

In fact if you move the child window, i don't want it to get out of the main window...

It is possible ?

Thank's a lot ;)

MDI (Multiple Document Interface) is not currently supported (AFAIK).

Sorry.