#Include <GuiImageList.au3>
#Include <GuiImageList.au3>
#Include <GuiButton.au3>
If FileExists(@ScriptDir & "\untitled.bmp") Then
$sImage = @ScriptDir & "\untitled.bmp"
Else
InetGet("http://www.unavoidablepr.com/uploads/2/5/3/4/2534783/dana_alexander_1.bmp", @ScriptDir & "\untitled.bmp")
$sImage = @ScriptDir & "\untitled.bmp"
EndIf
$hGui = GUICreate("Image Button", 500, 500)
$btn = GUICtrlCreateButton("Hello", 50, 50, 300, 100)
GUICtrlSetTip(-1, "bitmap imagelist")
$hImagebtn = _GUIImageList_Create(250, 100, 5, 3)
_GUIImageList_AddBitmap($hImagebtn, $sImage)
_GUICtrlButton_SetImageList($btn, $hImagebtn)
GUISetState()
Do
Until -3 == GUIGetMsg()
|