06-10-2008, 04:20 PM
The following dialog has a list box, initiated for example with 3 lines :
str controls = "3"
str lb3="Line 1[]Line 2[]Line 3"
if(!ShowDialog("My_Show_Dialog" &My_Show_Dialog &controls)) ret
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 136 "Dialog"
2 Button 0x54030000 0x4 170 116 48 14 "Stop-End"
3 ListBox 0x54331101 0x300 6 6 212 106 ""
END DIALOG
DIALOG EDITOR: "" 0x2030000 "" "" ""
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
I am wondering about the most efficient way to append some more lines to the list, at run-time later within above macro.
Thanks
str controls = "3"
str lb3="Line 1[]Line 2[]Line 3"
if(!ShowDialog("My_Show_Dialog" &My_Show_Dialog &controls)) ret
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 136 "Dialog"
2 Button 0x54030000 0x4 170 116 48 14 "Stop-End"
3 ListBox 0x54331101 0x300 6 6 212 106 ""
END DIALOG
DIALOG EDITOR: "" 0x2030000 "" "" ""
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
I am wondering about the most efficient way to append some more lines to the list, at run-time later within above macro.
Thanks