Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
saving text in a drop down box from dialog
#1
how can i save text in a drop down box and keep it there for future use this is what i have so far

thank u for any help

\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

BEGIN DIALOG
0 "" 0x90CA0AC8 0x0 0 0 157 30 "family numbers list"
1 Button 0x54030001 0x4 120 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 ComboBox 0x54230243 0x0 0 8 96 213 ""
4 Button 0x54032000 0x0 100 8 48 14 "call it"
END DIALOG
DIALOG EDITOR: "" 0x2030109 "" "" ""

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

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
#2
Save dialog control values


Forum Jump:


Users browsing this thread: 1 Guest(s)