Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combobox ?
#1
Hi Gintaras !

What im trying to do :

i want to show the on desktop saved notepads in a dropdown combobox , no problem so far,now i want to show the fileinfo if i select one.
i know how to use .getfile etc. and i know how to bring the data of the selected file to an other combo or listbox but i want it in the same box if possible!?

here my code so far ;

Function Dialog342
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90CA0AC8 0x0 0 0 145 107 "Dialog"
;3 ComboBox 0x54230243 0x0 28 16 94 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030202 "*" "" ""

str controls = "3"
str cb3
cb3= "&Select List"

if(!ShowDialog("Dialog342" &Dialog342 &controls)) ret
ret
;messages
sel message
,case WM_INITDIALOG

,ARRAY(str) a; int i
,GetFilesInFolder a "$desktop$\" "*.txt"
,for i 0 a.len
,,_s=a[i]
,,_s.getfilename
,,CB_Add id(3 hDlg) _s

,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1

best regards.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)