06-04-2008, 02:39 AM
Try this...
Function Dialog2
Trigger F3
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