DockA() [v1.0]

Author: majkinetor Last Modified: nonexistent


Using dock module you can glue windows to an AHK window.

Docked windows are called Clients and the window that keeps their position relative to itself is called the Host. Once Clients are connected to the Host, this group of windows will behave like single window - moving, sizing, focusing, hiding and other OS events will be handled by the module so that the “composite window” behaves like the single window.

This module is version of Dock module that supports only AHK hosts (hence A in the name). Unlike Dock module, it doesn’t uses system hook to monitor windows changes.

DockA(HHost="", HClient="", DockDef="")
DockA_(HHost+0, HClient+0, DockDef, "")

For the functions's parameters and return value, please see it's source code.

Remarks

This module is part of the Forms Framework package.

See at Dock for regular Windows:
* GUID=a7a64970-955f-126a-96cc-1a6e80e6c03f

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=53317

License

The functions is an open source item under the BSD license.
For details, please see http://creativecommons.org/licenses/BSD/

Example

; #Include DockA.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

Gui, 2:Add, Text, HwndH2, client
Gui, 2:Show, h100 w200
Gui, 2:+LastFound
cGui := WinExist("A")

Gui, 1:Add, Text, HwndH1, host
Gui, 1:Show, h100 w200
Gui, 1:+LastFound
hGui := WinExist("A")

DockA(hGui, cGui, "x(1) y()")
Return

GuiClose:
ExitApp