DockDock desired top level windows (dock clients) to any top level window (dock host)
Using dock module you can glue your or third-party windows to any top level window. Docked windows in module terminology are called Clients and the window that keeps their position relative to itself is called 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. Module uses system hook to monitor windows changes, so it’s idle when it is not aranging windows. Summary
Dock
Instantiate dock of given client upon host. Multiple clients per one host are supported. Parameters
Globals
Dock definitionDock definition is string containing 10 numbers that describe Client positon relative to the Host. The big number of parameters allows fine tuning of Client’s postion and basicly every setup is possible. Parameters are grouped in 4 classes - first 3 influence X coordinate of the client, next 3 Y coordinate, next 2 Client’s width and final 2 Client’s height: xhw,xw,xd, yhh,yh,yd [, whw,wd, hhh,hd]
Returns”OK” or “Err” with text describing last succesiful or failed action. RemarksYou must set DetectHiddenWindows if Host is practicing hiding. Otherwise, Dock will treat Host hiding as death. All clients will be hidden once host is terminated or it becomes hidden itself. Use SetBatchLines, -1 with dock module for fluid client movement. You will experience delay in clients moving otherwise. However, if CPU usage is very high, you might experience a delay in client movement anyway. If you are using Gui, Show command imediately before registering client, make sure you specify NoActivate flag. Currently its not supported to set Client window on top Host window. AlwaysOnTop (or TopMost) flag will not influence behavior of the module so avoid setups in which client is entirely covered by the Host. ExampleDock(Client1ID, "0,-1,-10, 0,0,0, 0,63, 1,0") ;top left, host height Dock_Toggle
Toggles the dock module ON or OFF. Parameters
RemarksUse Dock_Toggle(false) to suspend the dock module (to unregister hook), leaving its internal data in place. This is different from Dock_Shutdown as latest removes module completely from memory and unregisters its clients. You can also use this function to temporary disable module when you don’t want dock update routine to interrupt your time critical sections. PresetsThis section contains some common docking setups. You can just copy/paste dock definition strings in your script.
About
|
Instantiate dock of given client upon host.
Dock( pClientID, pDockDef = "", reset = 0 )
Uninitialize dock module.
Dock_Shutdown()
Toggles the dock module ON or OFF.
Dock_Toggle( enable = "" )