Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drag Drop Files...
#11
The edit box supports drag and drop, I have modified it successfully, here is the code



Macro Edit_Drag Drop
Code:
Copy      Help
;http://www.quickmacros.com/forum/showthread.php?tid=2702&pid=12511#pid12511
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 ListBox 0x54230101 0x200 0 0 224 62 ""
;4 Edit 0x54030080 0x200 4 72 214 12 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040801 "*" "" "" ""

str controls = "3 4"
str lb3 e4
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,QmRegisterDropTarget(id(4 hDlg) hDlg 16)
,case WM_DESTROY
,case WM_COMMAND goto messages2
,case WM_QM_DRAGDROP
,QMDRAGDROPINFO& di=+lParam
,int hlb=id(4 hDlg)
,str s=di.files
,s.setwintext(hlb)

ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1

Using the delete button to delete the items in the list box, has not been completed, I hope someone can provide some suggestions, thanks in advance


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)