something like this:
Code: Select all
a := Gui(,'test')
name := 'tester'
emo := '✔️'
pic := '%A_ScriptPath%\Compiler\Ahk2Exe.ico'
loop 6 {
ty := (A_Index-1) // 2 + 1
tx := Mod(A_Index-1, 2) + 1
tPX := 100*(tx-1)
tPY := 100*(ty-1)
a.AddButton('0x800 0x8000 -Wrap x' tPX ' y' tPY ' w' 100 ' h' 100,name)
if Mod(A_Index,3) = 0 {
a.AddPicture('BackgroundTrans x' tPX+20//2 ' y' tPY ' w' 80 ' h' 80,pic)
} else {
a.AddText('BackgroundTrans Center x' tPX ' y' tPY ' w' 100 ' h' 80,emo).SetFont('S' 80//4*3)
}
}
a.Show()
But there is a problem, when ever my mouse hover over a button, the icon will disappear and it will never come back.
Demonstration:
Am I missing something here?
Are there a proper way to add icon which makes it always on top of button?
Or a way to "reAdd" the icon when ever it get cover by the button?