Author: majkinetor Last Modified: nonexistent
Aligns controls inside the parent.
Align(h1, "L", 100)
For the functions's parameters and return value, please see it's source code.
This module is part of the Forms Framework package.
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=53317
The functions is an open source item under the BSD license.
For details, please see http://creativecommons.org/licenses/BSD/
; #Include Win.ahk ; #Include Align.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Gui, Add, Text, HwndH1, hello Gui, Add, Text, HwndH2 x+8, majkinetor Gui, Add, Text, HwndH3 x+8, thx MsgBox Proceed further to see what happens if aligned with Align. Gui, Show, h100 w200 Gui, +LastFound hGui := WinExist("A") Sleep, 1500 Align(h1, "L", 100) ;Align this control to the left edge of its parent, set width to 100, Align(h2, "T") ; then align this control to the top minus space taken from previous control, use its own height, Align(h3, "F") ; then set this control to fill remaining space. Align(hGui) ;Re-align hGui Return GuiClose: ExitApp