作者: majkinetor 最近更新时间: nonexistent
Aligns controls inside the parent.
Align(h1, "L", 100)
关于函数的参数和返回值, 请参阅其源码.
This module is part of the Forms Framework package.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=53317
此函数(集)是基于 BSD 许可的开源项目. 想了解许可详情, 请参见 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