05-20-2007, 01:52 PM
Hi i still need help
i been reading up on the rget and rset and i just don't know how to use it with my dialog don't know where to put it or know what to put here is my code can someone show me what to do so it saves what i type in all the editables when i close dialog so it will be there next time i open dialog..
Hope someone can help
Thanks
i been reading up on the rget and rset and i just don't know how to use it with my dialog don't know where to put it or know what to put here is my code can someone show me what to do so it saves what i type in all the editables when i close dialog so it will be there next time i open dialog..Hope someone can help
Thanks\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3 1005 1006 1007 1012 1013 1014 1015 1018 1103 1104 1107 1109 1111 1112"
str lb3 e1005 e1006 e1007 e1012 e1013 e1014 e1015 sb1018 e1103 e1104 e1107 e1109 e1111 e1112
lb3="&BPKBETS[]WEEKLY"
sb1018="C:\Documents and Settings\Owner\My Documents\My QM\tab2.bmp"
if(!ShowDialog("TAB1" &TAB1 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 319 152 "Form"
;3 ListBox 0x54230101 0x204 8 116 40 29 ""
;1201 Static 0x44020000 0x4 106 4 48 13 "Page2"
;2 Button 0x54030000 0x4 52 134 48 10 "Cancel"
;1002 Static 0x54000000 0x0 8 12 60 10 "Brent's Winning's"
;1003 Static 0x54000000 0x0 8 40 60 10 "Paul's Winning's"
;1004 Static 0x54000000 0x0 8 68 60 10 "Kirky's Winning's"
;1005 Edit 0x54030080 0x200 8 22 54 12 ""
;1006 Edit 0x54030080 0x200 8 50 54 13 ""
;1007 Edit 0x54030080 0x200 8 78 54 12 ""
;1008 Static 0x54000000 0x0 86 12 50 10 "Spent"
;1009 Static 0x54000000 0x0 86 40 50 10 "Banked"
;1010 Static 0x54000000 0x0 146 12 50 10 "Winning's"
;1011 Static 0x54000000 0x0 146 40 50 10 "Total"
;1012 Edit 0x54030080 0x200 86 22 50 12 ""
;1013 Edit 0x54030080 0x200 86 50 50 13 ""
;1014 Edit 0x54030080 0x200 146 22 50 12 ""
;1015 Edit 0x54030080 0x200 146 50 50 13 ""
;1018 Static 0x5400100E 0x20000 208 12 98 45 ""
;1102 Static 0x54000000 0x0 16 14 32 10 "Brents"
;1103 Edit 0x54030844 0x20000 8 24 42 90 "5 January[]27 January[]16 February[]9 March[]30 March[]20 April[]5 May[]25 May[][]"
;1104 Edit 0x54231044 0x200 50 24 54 90 "[]"
;1105 Static 0x54000000 0x0 58 14 34 12 "Winnings"
;1107 Edit 0x54030844 0x20000 112 24 42 90 "12 January[]2 February[]23 February[]16 March[]7 April[]27 April[]19 May[]8 June"
;1108 Static 0x54000000 0x0 120 14 32 10 "Paul's"
;1109 Edit 0x54231044 0x200 154 24 54 90 ""
;1111 Edit 0x54030844 0x20000 216 24 42 90 "19 January[]9 February[]2 March[]23 March[]14 April[]12 May[]1 June[]22 June"
;1112 Edit 0x54231044 0x200 258 24 54 90 ""
;1113 Static 0x54000000 0x0 224 14 32 10 "Kirky's"
;1114 Static 0x54000000 0x0 162 14 34 10 "Winning's"
;1115 Static 0x54000000 0x0 266 14 32 10 "Winning's"
;1110 Static 0x54000011 0x20000 212 6 1 107 ""
;1106 Static 0x54000011 0x20000 108 6 1 108 ""
;1101 Button 0x54020007 0x0 4 0 314 148 "Weekly Results"
;1017 Static 0x54000010 0x20000 8 96 291 1 ""
;1016 Static 0x54000011 0x20000 76 6 1 85 ""
;1001 Button 0x54020007 0x0 4 0 310 148 "BPKBETS"
;END DIALOG
;DIALOG EDITOR: "" 0x2010901 "*" "1 "
ret
;messages
sel message
,case WM_INITDIALOG
,goto selectpage
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case LBN_SELCHANGE<<16|3
,;selectpage
,_i=LB_SelectedItem(id(3 hDlg))
,DT_Page hDlg _i
ret 1