Skip to content

Example Expanding Buttons


Example Expanding Buttons

#Include <GridGUI>

myGui := new GridGUI("ahk", "Resize", true)
loop 3 {
    myGui.Add(A_Index, A_Index, "Button", , A_Index, A_Index != 2, A_Index != 2, A_Index != 2, A_Index != 2)
}
myGui.Show("w500 h500")
pos := myGui.WinGetPos()
myGui.WinMove(pos.x - pos.w / 2)

myGui2 := new GridGUI("ahk", "Resize", true)
loop 3 {
    myGui2.Add(A_Index, A_Index, "Button", , A_Index, A_Index = 2, A_Index = 2, A_Index = 2, A_Index = 2)
}
myGui2.Show("w500 h500")
myGui2.WinMove(pos.x + pos.w / 2, pos.y)

myGui.GuiClose := GridGUI.ExitApp
myGui2.GuiClose := GridGUI.ExitApp
return
Back to top