11-07-2008, 11:24 PM
How come this works but only when mouse is over dialog not picture?
Function Mouse_Move2
Trigger F11
Function Mouse_Move2
Trigger F11

\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Mouse_Move2" &Mouse_Move2)) ret
;BEGIN DIALOG
;0 "" 0x90CF0A44 0x100 0 0 222 134 "Mouse_Move2"
;5 Button 0x54032080 0x0 6 50 11 9 "Bitmap without text"
;END DIALOG
;DIALOG EDITOR: "" 0x2030001 "" "0" ""
ret
;messages
sel message
,case WM_INITDIALOG
,SendMessage(id(5 hDlg) BM_SETIMAGE IMAGE_BITMAP LoadPictureFile(":200 $my qm$\1-1.bmp" 0)) ;;can be bmp, gif of jpg
,
,case WM_COMMAND goto messages2
,case WM_MOUSEMOVE(id(5 hDlg))
,,SendMessage(id(5 hDlg) BM_SETIMAGE IMAGE_BITMAP LoadPictureFile(":200 $my qm$\3-1.bmp" 0)) ;;can be bmp, gif of jpg
,case WM_DESTROY
ret
;messages2
sel wParam
,case IDCANCEL
ret 1