Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
drag Combo help
#1
What do i have to do to be able to drag a simple text document into a combo box so that when i click on the combo box it displays what was in the text document in the drop down list.?
#2
Function Dialog13
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "3"
str cb3
if(!ShowDialog("Dialog13" &Dialog13 &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 ComboBox 0x54230641 0x0 2 2 118 114 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030004 "*" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,QmRegisterDropTarget id(3 hDlg) hDlg 16
,case WM_QM_DRAGDROP
,QMDRAGDROPINFO& di=+lParam
,str s.getl(di.files 0) ;;get first dropped file
,str s2.getfile(s)
,int hcb=id(3 hDlg)
,SendMessage hcb CB_RESETCONTENT 0 0
,foreach s s2
,,CB_Add hcb s
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
#3
tyvm bro
#4
hi,

how can i do, that the first line off the text-file is selectet ??? and how can i remove this line ???


thx


max
#5
Code:
Copy      Help
,;select
,CB_SelectItem id(3 hDlg) 0
,
,;delete
,SendMessage id(3 hDlg) CB_DELETESTRING 0 0
#6
tyvvvvvvvm Gin




Max


Forum Jump:


Users browsing this thread: 1 Guest(s)