07-21-2008, 09:27 AM
Gintaras Wrote:Example.
Function Dialog32
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str cb3
cb3="one[]two[]three"
int i
rget i "cb3" "\MySettings"
CB_InitDialogVariable cb3 i
if(!ShowDialog("Dialog32" &Dialog32 &controls)) ret
rset val(cb3) "cb3" "\MySettings"
;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 0x54230243 0x0 8 8 96 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2020006 "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
Is there a way to make it so that this code can save text in an edit box as well?