Posts: 1,271
Threads: 399
Joined: Mar 2003
i ask this a while ago.
is there any chance that we can get drop support for toolbar buttons ?
drop text
drop file
Posts: 12,073
Threads: 140
Joined: Dec 2002
Drop file support already is. You probably need drop notification instead of inserting button for file. Not in QM 2.1.9.
Posts: 1,271
Threads: 399
Joined: Mar 2003
Gintaras Wrote:Drop file support already is. You probably need drop notification instead of inserting button for file. Not in QM 2.1.9.
lets say button size is 16px,
i have not tested it, but maybe a transparent RichEdit20A with a Static icon/bmp under it could work ?
Posts: 12,073
Threads: 140
Joined: Dec 2002
Posts: 1,271
Threads: 399
Joined: Mar 2003
in this raw example file drop on a edit control works.
the dialog could be used on a toolbar as child.
Macro9
str controls = "5"
str e5tit
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret
Dialog2
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x118 0 0 315 80 "Form"
;5 Edit 0x54030000 0x200 4 4 244 14 "title"
;END DIALOG
;DIALOG EDITOR: "" 0x2010900 "" ""
ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)
sel message
,case WM_INITDIALOG
,;mov 1700 100 hDlg
,ret 1
,case WM_DROPFILES TO_DropFiles hDlg wParam
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case EN_CHANGE<<16|5
,,out _s.getwintext(id(5 hDlg))
,case EN_SETFOCUS<<16|5
,,out "huhu"
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1