Posts: 21
Threads: 6
Joined: Aug 2007
how would i add a image for the back ground of my exe file?
on auto add images it give me no sample to go off of and cant find it in help
Posts: 21
Threads: 6
Joined: Aug 2007
i got this but i cant seem to get the image as the background
any help please
ty
,int bm=qm.LoadPictureFile("$My QM$\SnowFlake.bmp" 0)
,SendMessage(id(3 hDlg) BM_SETIMAGE IMAGE_BITMAP bm)
Posts: 576
Threads: 97
Joined: Aug 2007
Try this...
Function
Dialog2
Trigger
F3
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 739 422 "Dialog"
;3 Static 0x5400100E 0x20000 0 0 834 444 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030001 "" "" ""
str controls = "3"
str sb3
sb3="C:\Documents and Settings\Owner\My Documents\My Pictures\EXAMPLE_PIC.jpg or .bmp"
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
Posts: 21
Threads: 6
Joined: Aug 2007
thanks alot qm_expert
works great
Posts: 12,072
Threads: 140
Joined: Dec 2002
Also add a resource id to the file path. The file must be bmp.
Function
Dialog211
;/exe
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 725 422 "Dialog"
;3 Static 0x5400100E 0x20000 0 0 834 444 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030001 "" "" ""
str controls = "3"
str sb3
sb3=":10 $my pictures$\60x90.bmp"
if(!ShowDialog("Dialog211" &Dialog211 &controls)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
;BEGIN PROJECT
;main_function Dialog211
;exe_file $my qm$\Dialog211.exe
;icon $qm$\macro.ico
;manifest $qm$\default.exe.manifest
;res
;on_before
;on_after
;on_run
;flags 22
;end_hotkey 0
;guid {ADD2B117-AE02-4371-9553-A731E169417F}
;END PROJECT
Posts: 21
Threads: 6
Joined: Aug 2007
will that add the bmp file to my macro so if i give it to my friends i dont have to send them the pic?
and tyvm for ur help
i like the look of the forum nice theme
Posts: 12,072
Threads: 140
Joined: Dec 2002
Tramp Wrote:will that add the bmp file to my macro so if i give it to my friends i dont have to send them the pic?
it is what i wanted to say
Posts: 21
Threads: 6
Joined: Aug 2007
tyvm
Posts: 576
Threads: 97
Joined: Aug 2007
Gint we're you saying only .bmp files work? I'm pretty sure on mine both .bmp and .jpg worked...I might be wrong but i'll try again tomorow.
Posts: 12,072
Threads: 140
Joined: Dec 2002
Does not work only when you add resource id, like
":10 c:\...\file.jpg"
That is, you cannot simply add jpg to exe. It must be separate file. Or maybe can be used #exe addfile.