Skip to content

Commit

Permalink
Fixed incorrect image file path
Browse files Browse the repository at this point in the history
  • Loading branch information
tmplinshi authored Jan 20, 2017
1 parent bb5953a commit 2329d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Sample.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SetBatchLines, -1
#Include Class_ImageButton.ahk
; ----------------------------------------------------------------------------------------------------------------------
Gui, DummyGUI:Add, Pic, hwndHPIC, PIC1.jpg
Gui, DummyGUI:Add, Pic, hwndHPIC, ..\Resources\PIC1.jpg
SendMessage, 0x0173, 0, 0, , ahk_id %HPIC% ; STM_GETIMAGE
HPIC1 := ErrorLevel
; ----------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -47,7 +47,7 @@ Gui, Add, CheckBox, xp y+0 w200 gCheck vCheckBox, Enable!
; Image button without caption with different pictures for states normal and hot ---------------------------------------
Gui, Add, Button, vBT4 w200 h30 hwndHBT4
Opt1 := [0, HPIC1] ; normal image
Opt2 := {2:"PIC2.jpg"} ; hot image (object syntax)
Opt2 := {2:"..\Resources\PIC2.jpg"} ; hot image (object syntax)
If !ImageButton.Create(HBT4, Opt1, Opt2)
MsgBox, 0, ImageButton Error Btn4, % ImageButton.LastError
; GuiControl, Focus, BT2
Expand Down

0 comments on commit 2329d35

Please sign in to comment.