Thanks for that, but is there a way to ensure that the DBPro window is always on top of and aligned with the BBB window, without resorting to manual positioning and zorder commands, which only take effect after you've finished moving the BBB window?
**EDIT**
I use this code to create the forms, but now the DBPro window will flicker between being at 0,0 to another position on the form, and back again. I can't show a video of it as fraps will only record the DBPro window, and not the parent window.
Help! Lol
DBPro_W = BBB App_GetDbproWindow()
`We have to call this command to allow visibility of our controls which are placed on the default dbpro window
BBB Window_SetStyle DBPro_W, BBB Window_GetStyle( DBPro_W ) || WS_CLIPCHILDREN || WS_CLIPSIBLINGS || WS_CHILD
W = BBB Window_Make( 0, 0, Engine.Width + 220, Engine.Height + 40, "Insanity Engine UI Editor", 0, WS_OVERLAPPEDWINDOW )
BBB App_SetMainWindow W
Set Window Layout 0, 0, 4 : BBB Window_SetParent DBPro_W, W
Quit = False
Repeat
BBB App_GetEvent
H = BBB App_GetEventHandle()
M = BBB App_GetEventMessage()
If H = BBB App_GetMainWindow()
If M = WM_CLOSE
A = BBB MessageBox( "Are you sure you want to quit?", "BBB Gui plugin", MB_YESNO )
If A = IDYES Then Quit = True
EndIf
EndIf
BBB Window_SetSize DBPro_W, BBB Window_GetClientWidth( W ) - 200, BBB Window_GetClientHeight( W )
BBB Window_SetPosition DBPro_W, 0, 0
Sync
Until Quit = True
BBB App_End
EndFunction
This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]