Take 1:
Code: Select all
Loop, 10
Gui, Add, Picture, % (A_Index =1 ? "x10 y10" : "x+10 yp") . " w32 h32 gClick vIcon" . A_Index . " Icon" . A_Index, %A_WinDir%\System32\Shell32.dll
Gui, Show
return
Click:
MsgBox, %A_ThisLabel% on %A_GuiControl%.
return
Take 2:
Code: Select all
Loop, 10
Gui, Add, Picture, % (A_Index =1 ? "x10 y10" : "x+10 yp") . " gClick w32 h32 vIcon" . A_Index . " Icon" . A_Index, %A_WinDir%\System32\Shell32.dll
Gui, Font, s6
Loop, 10
Gui, Add, Button, % (A_Index =1 ? "x10 y40" : "x+10 yp") . " gEnter w32 h15 vButton" . A_Index, %A_Index% ; BackgroundTrans y20 x20 w20 h27 ReadOnly gSelected
Gui, Show
Return
Click:
Enter:
MsgBox, %A_ThisLabel% on %A_GuiControl%.
return
Take 3:
Code: Select all
Loop, 10
Gui, Add, Picture, % (A_Index =1 ? "x10 y10" : "x+10 yp") . " gClick w32 h32 vIcon" . A_Index . " Icon" . A_Index, %A_WinDir%\System32\Shell32.dll
Gui, Font, s6
Loop, 10
Gui, Add, Edit, % (A_Index =1 ? "x10 y10" : "x+10 yp") . " gEnter w32 h32 vEdit" . A_Index . " -VScroll BackgroundTrans ReadOnly"
Gui, Show
Return
Click:
Enter:
MsgBox, %A_ThisLabel% on %A_GuiControl%.
return
1) Making the edit control transparent did not work.
2) How could I make the Edit control react to the Enter keypress?
3) How could I suppress the blinking cursor in Edit controls?
Any suggestion about these issues? Or would you suggest another approach?
Thanks,
Jean