Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
images
#1
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
#2
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)
#3
Try this...

Function Dialog2
Trigger F3     Help - how to add the trigger to the macro
Code:
Copy      Help
;\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
#4
thanks alot qm_expert
works great
#5
Also add a resource id to the file path. The file must be bmp.

Function Dialog211
Code:
Copy      Help
;/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
#6
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
#7
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
#8
tyvm Big Grin Big Grin
#9
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.
#10
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.


Forum Jump:


Users browsing this thread: 1 Guest(s)