Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
toolbar drop
#1
i ask this a while ago.

is there any chance that we can get drop support for toolbar buttons ?

drop text
drop file
pi
#2
Drop file support already is. You probably need drop notification instead of inserting button for file. Not in QM 2.1.9.
#3
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 ?
pi
#4
I don't think so.
#5
in this raw example file drop on a edit control works.
the dialog could be used on a toolbar as child.

Macro9
Code:
Copy      Help
str controls = "5"
str e5tit
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret

Dialog2
Code:
Copy      Help
;\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
pi


Forum Jump:


Users browsing this thread: 4 Guest(s)