04-19-2009, 04:52 AM
That just confused me more.
What i am trying to do is make a dialog with a drop down box with a list and when i click on something in the list it opens like
funds for year 2009 home
funds for year 2009 office
reports for sales of 2009
reports for sale of 2008
I tried to use a list box Like this
sel(list("Rental House Income Jan 09[]Rental House Income Feb 09[]Rental House Income Mar 09[]Gas Charges Jan 09[]Gas Charges Feb 09[]Gas Charges Mar 09[]funds for year 2009 home[]funds for year 2009 office[]reports for sales of 2009[]reports for sale of 2008" "My Books" "Books"))
case 1
case 2
case 3
case 4
case 5
case 6
case 7
case 8
case 9
case 10
case else ret
But it does not have a scroll box.
I want it to look like this
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str cb3
if(!ShowDialog("Dialog5" &Dialog5 &controls)) ret
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 50 "Dialog"
1 Button 0x54030001 0x4 120 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 ComboBox 0x54230243 0x0 2 24 96 213 ""
END DIALOG
DIALOG EDITOR: "" 0x2020105 "" "" ""
ret
messages
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case CBN_SELENDOK<<16|3
_i=CB_SelectedItem(lParam)
case IDOK
case IDCANCEL
ret 1
But with all of the stuff i need in the scroll box.
What i am trying to do is make a dialog with a drop down box with a list and when i click on something in the list it opens like
funds for year 2009 home
funds for year 2009 office
reports for sales of 2009
reports for sale of 2008
I tried to use a list box Like this
sel(list("Rental House Income Jan 09[]Rental House Income Feb 09[]Rental House Income Mar 09[]Gas Charges Jan 09[]Gas Charges Feb 09[]Gas Charges Mar 09[]funds for year 2009 home[]funds for year 2009 office[]reports for sales of 2009[]reports for sale of 2008" "My Books" "Books"))
case 1
case 2
case 3
case 4
case 5
case 6
case 7
case 8
case 9
case 10
case else ret
But it does not have a scroll box.
I want it to look like this
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str cb3
if(!ShowDialog("Dialog5" &Dialog5 &controls)) ret
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 50 "Dialog"
1 Button 0x54030001 0x4 120 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 ComboBox 0x54230243 0x0 2 24 96 213 ""
END DIALOG
DIALOG EDITOR: "" 0x2020105 "" "" ""
ret
messages
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case CBN_SELENDOK<<16|3
_i=CB_SelectedItem(lParam)
case IDOK
case IDCANCEL
ret 1
But with all of the stuff i need in the scroll box.
