Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog Trouble.
#1
I have this problem on larger dialogs containing a lot of edit boxes, static text, and other stuff. I'll go into the dialog editor to make a minor change like position or tab order...then when I hit update...whammo...the dialog text gets FUBAR'ed.

Original

;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x10C00A40 0x0 0 0 337 383 "End Of Day Report"
;37 Edit 0x54030080 0x200 16 28 40 13 ""
;38 Edit 0x54030080 0x200 60 28 40 13 ""
;39 Edit 0x54030080 0x200 16 44 40 13 ""
;40 Edit 0x54030080 0x200 60 44 40 13 ""
;41 Edit 0x54030080 0x200 16 60 40 13 ""
;42 Edit 0x54030080 0x200 60 60 40 13 ""
;43 Edit 0x54030080 0x200 16 76 40 13 ""
;44 Edit 0x54030080 0x200 60 76 40 13 ""
;45 Edit 0x54030080 0x200 16 92 40 13 ""
;46 Edit 0x54030080 0x200 60 92 40 13 ""
;47 Edit 0x54030080 0x200 16 108 40 13 ""
;48 Edit 0x54030080 0x200 60 108 40 13 ""
;49 Edit 0x54030080 0x200 16 124 40 13 ""
;50 Edit 0x54030080 0x200 60 124 40 13 ""
;51 Edit 0x54030080 0x200 16 140 40 13 ""
;52 Edit 0x54030080 0x200 60 140 40 13 ""
;53 Edit 0x54030080 0x200 16 156 40 13 ""
;54 Edit 0x54030080 0x200 60 156 40 13 ""
;55 Edit 0x54030080 0x200 16 172 40 13 ""
;56 Edit 0x54030080 0x200 60 172 40 13 ""
;57 Edit 0x54030080 0x200 16 188 40 13 ""
;58 Edit 0x54030080 0x200 60 188 40 13 ""
;59 Edit 0x54030080 0x200 16 204 40 13 ""
;60 Edit 0x54030080 0x200 60 204 40 13 ""
;61 Edit 0x54030080 0x200 16 220 40 13 ""
;62 Edit 0x54030080 0x200 60 220 40 13 ""
;63 Edit 0x54030080 0x200 16 236 40 13 ""
;64 Edit 0x54030080 0x200 60 236 40 13 ""
;68 Edit 0x54030080 0x200 16 252 40 13 ""
;69 Edit 0x54030080 0x200 60 252 40 13 ""
;70 Edit 0x54030080 0x200 16 268 40 13 ""
;71 Edit 0x54030080 0x200 60 268 40 13 ""
;72 Edit 0x54030080 0x200 16 284 40 13 ""
;73 Edit 0x54030080 0x200 60 284 40 13 ""
;74 Edit 0x54030080 0x200 16 300 40 13 ""
;75 Edit 0x54030080 0x200 60 300 40 13 ""
;76 Edit 0x54030080 0x200 16 316 40 13 ""
;77 Edit 0x54030080 0x200 60 316 40 13 ""
;78 Edit 0x54030080 0x200 16 332 40 13 ""
;79 Edit 0x54030080 0x200 60 332 40 13 ""
;80 Edit 0x54030080 0x200 16 348 40 13 ""
;81 Edit 0x54030080 0x200 60 348 40 13 ""
;3 Edit 0x54030080 0x200 128 28 40 13 ""
;4 Edit 0x54030080 0x200 128 44 40 13 ""
;5 Edit 0x54030080 0x200 128 60 40 13 ""
;6 Edit 0x54030080 0x200 128 76 40 13 ""
;11 Edit 0x54030080 0x200 128 125 16 12 ""
;12 Edit 0x54030080 0x200 128 141 16 12 ""
;13 Edit 0x54030080 0x200 128 157 16 12 ""
;14 Edit 0x54030080 0x200 128 173 16 12 ""
;15 Edit 0x54030080 0x200 128 189 16 12 ""
;20 Edit 0x54030080 0x200 128 205 16 12 ""
;21 Edit 0x54030080 0x200 128 221 16 12 ""
;25 Edit 0x54030080 0x200 168 125 16 12 ""
;26 Edit 0x54030080 0x200 168 141 16 12 ""
;27 Edit 0x54030080 0x200 168 157 16 12 ""
;28 Edit 0x54030080 0x200 168 173 16 12 ""
;29 Edit 0x54030080 0x200 168 189 16 12 ""
;30 Edit 0x54030080 0x200 168 205 16 12 ""
;82 Edit 0x54030080 0x200 128 268 40 13 ""
;83 Edit 0x54030080 0x200 128 284 40 13 ""
;84 Edit 0x54030080 0x200 128 300 40 13 ""
;90 Edit 0x54030080 0x200 128 316 40 13 ""
;93 Edit 0x54030080 0x200 128 332 40 13 ""
;94 Edit 0x54030080 0x200 128 348 40 13 ""
;98 Edit 0x54030080 0x200 232 28 40 13 ""
;100 Edit 0x54030080 0x200 232 44 40 13 ""
;102 Edit 0x54030080 0x200 232 60 40 13 ""
;104 Edit 0x54030080 0x200 232 76 40 13 ""
;1 Button 0x54030001 0x4 228 356 48 14 "OK"
;2 Button 0x54030000 0x4 280 356 48 14 "Cancel"
;96 Static 0x54000000 0x0 60 20 48 13 "$ Amount $"
;7 Static 0x54000000 0x0 172 28 40 13 "Visa"
;8 Static 0x54000000 0x0 172 44 40 13 "Mastercard"
;9 Static 0x54000000 0x0 172 60 40 13 "Amex"
;10 Static 0x54000000 0x0 172 76 40 13 "Discover"
;16 Static 0x54000000 0x0 144 125 20 12 "$100"
;17 Static 0x54000000 0x0 144 141 20 12 "$50"
;18 Static 0x54000000 0x0 144 157 20 12 "$20"
;19 Static 0x54000000 0x0 144 173 20 12 "$10"
;22 Static 0x54000000 0x0 144 189 20 12 "$5"
;23 Static 0x54000000 0x0 144 205 20 12 "$2"
;24 Static 0x54000000 0x0 144 221 20 12 "$1"
;25 Static 0x54000000 0x0 185 125 20 12 "$1"
;26 Static 0x54000000 0x0 185 141 20 12 "$0.50"
;27 Static 0x54000000 0x0 185 157 20 12 "$0.25"
;28 Static 0x54000000 0x0 185 173 20 12 "$0.10"
;29 Static 0x54000000 0x0 185 189 20 12 "$0.05"
;30 Static 0x54000000 0x0 185 205 20 12 "$0.01"
;85 Static 0x54000000 0x0 172 268 28 13 "AJP"
;86 Static 0x54000000 0x0 172 284 28 13 "JAV"
;87 Static 0x54000000 0x0 172 300 28 13 "DJH"
;88 Static 0x54000000 0x0 172 316 28 13 "DRK"
;89 Static 0x54000000 0x0 172 332 28 13 "JAD"
;91 Static 0x54000000 0x0 172 348 28 13 "CNS"
;95 Static 0x54000000 0x0 20 20 48 13 "Check #"
;99 Static 0x54000000 0x0 276 28 48 13 "Cost of Goods"
;101 Static 0x54000000 0x0 276 44 48 13 "Gift Sold"
;103 Static 0x54000000 0x0 276 60 48 13 "Gift Redeemed"
;105 Static 0x54000000 0x0 276 76 48 13 "Sales Tax"
;97 Button 0x54020007 0x0 228 12 100 88 "Accounting Information"
;92 Button 0x54020007 0x0 120 252 100 117 "Account Totals[]"
;67 Button 0x54020007 0x0 8 12 100 357 "Check Totals"
;66 Button 0x54020007 0x0 120 108 100 133 "Cash Totals"
;65 Button 0x54020007 0x0 120 12 100 88 "Credit Card Totals"
;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 IDOK
,case IDCANCEL
ret 1

after apply

;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x10C00A40 0x0 0 0 337 383 "End Of Day Report"
;37 Edit 0x54030080 0x200 16 28 40 13 ""
;38 Edit 0x54030080 0x200 60 28 40 13 ""
;39 Edit 0x54030080 0x200 16 44 40 13 ""
;40 Edit 0x54030080 0x200 60 44 40 13 ""
;41 Edit 0x54030080 0x200 16 60 40 13 ""
;42 Edit 0x54030080 0x200 60 60 40 13 ""
;43 Edit 0x54030080 0x200 16 76 40 13 ""
;44 Edit 0x54030080 0x200 60 76 40 13 ""
;45 Edit 0x54030080 0x200 16 92 40 13 ""
;46 Edit 0x54030080 0x200 60 92 40 13 ""
;47 Edit 0x54030080 0x200 16 108 40 13 ""
;48 Edit 0x54030080 0x200 60 108 40 13 ""
;49 Edit 0x54030080 0x200 16 124 40 13 ""
;50 Edit 0x54030080 0x200 60 124 40 13 ""
;51 Edit 0x54030080 0x200 16 140 40 13 ""
;52 Edit 0x54030080 0x200 60 140 40 13 ""
;53 Edit 0x54030080 0x200 16 156 40 13 ""
;54 Edit 0x54030080 0x200 60 156 40 13 ""
;55 Edit 0x54030080 0x200 16 172 40 13 ""
;56 Edit 0x54030080 0x200 60 172 40 13 ""
;57 Edit 0x54030080 0x200 16 188 40 13 ""
;58 Edit 0x54030080 0x200 60 188 40 13 ""
;59 Edit 0x54030080 0x200 16 204 40 13 ""
;60 Edit 0x54030080 0x200 60 204 40 13 ""
;61 Edit 0x54030080 0x200 16 220 40 13 ""
;62 Edit 0x54030080 0x200 60 220 40 13 ""
;63 Edit 0x54030080 0x200 16 236 40 13 ""
;64 Edit 0x54030080 0x200 60 236 40 13 ""
;68 Edit 0x54030080 0x200 16 252 40 13 ""
;69 Edit 0x54030080 0x200 60 252 40 13 ""
;70 Edit 0x54030080 0x200 16 268 40 13 ""
;71 Edit 0x54030080 0x200 60 268 40 13 ""
;72 Edit 0x54030080 0x200 16 284 40 13 ""
;73 Edit 0x54030080 0x200 60 284 40 13 ""
;74 Edit 0x54030080 0x200 16 300 40 13 ""
;75 Edit 0x54030080 0x200 60 300 40 13 ""
;76 Edit 0x54030080 0x200 16 316 40 13 ""
;77 Edit 0x54030080 0x200 60 316 40 13 ""
;78 Edit 0x54030080 0x200 16 332 40 13 ""
;79 Edit 0x54030080 0x200 60 332 40 13 ""
;80 Edit 0x54030080 0x200 16 348 40 13 ""
;81 Edit 0x54030080 0x200 60 348 40 13 ""
;3 Edit 0x54030080 0x200 128 28 40 13 ""
;4 Edit 0x54030080 0x200 128 44 40 13 ""
;5 Edit 0x54030080 0x200 128 60 40 13 ""
;6 Edit 0x54030080 0x200 128 76 40 13 ""
;11 Edit 0x54030080 0x200 128 125 16 12 ""
;12 Edit 0x54030080 0x200 128 141 16 12 ""
;13 Edit 0x54030080 0x200 128 157 16 12 ""
;14 Edit 0x54030080 0x200 128 173 16 12 ""
;15 Edit 0x54030080 0x200 128 189 16 12 ""
;20 Edit 0x54030080 0x200 128 205 16 12 ""
;21 Edit 0x54030080 0x200 128 221 16 12 ""
;25 Edit 0x54030080 0x200 168 125 16 12 ""
;26 Edit 0x54030080 0x200 168 141 16 12 ""
;27 Edit 0x54030080 0x200 168 157 16 12 ""
;28 Edit 0x54030080 0x200 168 173 16 12 ""
;29 Edit 0x54030080 0x200 168 189 16 12 ""
;30 Edit 0x54030080 0x200 168 205 16 12 ""
;82 Edit 0x54030080 0x200 128 268 40 13 ""
;83 Edit 0x54030080 0x200 128 284 40 13 ""
;84 Edit 0x54030080 0x200 128 300 40 13 ""
;90 Edit 0x54030080 0x200 128 316 40 13 ""
;93 Edit 0x54030080 0x200 128 332 40 13 ""
;94 Edit 0x54030080 0x200 128 348 40 13 ""
;98 Edit 0x54030080 0x200 232 28 40 13 ""
;100 Edit 0x54030080 0x200 232 44 40 13 ""
;102 Edit 0x54030080 0x200 232 60 40 13 ""
;104 Edit 0x54030080 0x200 232 76 40 13 ""
;1 Button 0x54030001 0x4 228 356 48 14 "OK"
;2 Button 0x54030000 0x4 280 356 48 14 "Cancel"
;96 Static 0x54000000 0x0 60 20 48 13 "$ Amount $"
;7 Static 0x54000000 0x0 172 28 40 13 "Visa"
;8 Static 0x54000000 0x0 172 44 40 13 "Mastercard"
;9 Static 0x54000000 0x0 172 60 40 13 "Amex"
;10 Static 0x54000000 0x0 172 76 40 13 "Discover"
;16 Static 0x54000000 0x0 144 125 20 12 "$100"
;17 Static 0x54000000 0x0 144 141 20 12 "$50"
;18 Static 0x54000000 0x0 144 157 20 12 "$20"
;19 Static 0x54000000 0x0 144 173 20 12 "$10"
;22 Static 0x54000000 0x0 144 189 20 12 "
"
;23 Static 0x54000000 0x0 144 205 20 12 " 65 Button 0x54020007 0x0 120 12 100 88 "Credit Card Totals"
"
;24 Static 0x54000000 0x0 144 221 20 12 " 0 "" 0x10C00A40 0x0 0 0 337 383 "End Of Day Report"
;37 Edit 0x54030080 0x200 16 28 40 13 ""
;38 Edit 0x54030080 0x200 60 28 40 13 ""
;39 Edit 0x54030080 0x200 16 44 40 13 ""
;40 Edit 0x54030080 0x200 60 44 40 13 ""
;41 Edit 0x54030080 0x200 16 60 40 13 ""
;42 Edit 0x54030080 0x200 60 60 40 13 ""
;43 Edit 0x54030080 0x200 16 76 40 13 ""
;44 Edit 0x54030080 0x200 60 76 40 13 ""
;45 Edit 0x54030080 0x200 16 92 40 13 ""
;46 Edit 0x54030080 0x200 60 92 40 13 ""
;47 Edit 0x54030080 0x200 16 108 40 13 ""
;48 Edit 0x54030080 0x200 60 108 40 13 ""
;49 Edit 0x54030080 0x200 16 124 40 13 ""
;50 Edit 0x54030080 0x200 60 124 40 13 ""
;51 Edit 0x54030080 0x200 16 140 40 13 ""
;52 Edit 0x54030080 0x200 60 140 40 13 ""
;53 Edit 0x54030080 0x200 16 156 40 13 ""
;54 Edit 0x54030080 0x200 60 156 40 13 ""
;55 Edit 0x54030080 0x200 16 172 40 13 ""
;56 Edit 0x54030080 0x200 60 172 40 13 ""
;57 Edit 0x54030080 0x200 16 188 40 13 ""
;58 Edit 0x54030080 0x200 60 188 40 13 ""
;59 Edit 0x54030080 0x200 16 204 40 13 ""
;60 Edit 0x54030080 0x200 60 204 40 13 ""
;61 Edit 0x54030080 0x200 16 220 40 13 ""
;62 Edit 0x54030080 0x200 60 220 40 13 ""
;63 Edit 0x54030080 0x200 16 236 40 13 ""
;64 Edit 0x54030080 0x200 60 236 40 13 ""
;68 Edit 0x54030080 0x200 16 252 40 13 ""
;69 Edit 0x54030080 0x200 60 252 40 13 ""
;70 Edit 0x54030080 0x200 16 268 40 13 ""
;71 Edit 0x54030080 0x200 60 268 40 13 ""
;72 Edit 0x54030080 0x200 16 284 40 13 ""
;73 Edit 0x54030080 0x200 60 284 40 13 ""
;74 Edit 0x54030080 0x200 16 300 40 13 ""
;75 Edit 0x54030080 0x200 60 300 40 13 ""
;76 Edit 0x54030080 0x200 16 316 40 13 ""
;77 Edit 0x54030080 0x200 60 316 40 13 ""
;78 Edit 0x54030080 0x200 16 332 40 13 ""
;79 Edit 0x54030080 0x200 60 332 40 13 ""
;80 Edit 0x54030080 0x200 16 348 40 13 ""
;81 Edit 0x54030080 0x200 60 348 40 13 ""
;3 Edit 0x54030080 0x200 128 28 40 13 ""
;4 Edit 0x54030080 0x200 128 44 40 13 ""
;5 Edit 0x54030080 0x200 128 60 40 13 ""
;6 Edit 0x54030080 0x200 128 76 40 13 ""
;11 Edit 0x54030080 0x200 128 125 16 12 ""
;12 Edit 0x54030080 0x200 128 141 16 12 ""
;13 Edit 0x54030080 0x200 128 157 16 12 ""
;14 Edit 0x54030080 0x200 128 173 16 12 ""
;15 Edit 0x54030080 0x200 128 189 16 12 ""
;20 Edit 0x54030080 0x200 128 205 16 12 ""
;21 Edit 0x54030080 0x200 128 221 16 12 ""
;25 Edit 0x54030080 0x200 168 125 16 12 ""
;26 Edit 0x54030080 0x200 168 141 16 12 ""
;27 Edit 0x54030080 0x200 168 157 16 12 ""
;28 Edit 0x54030080 0x200 168 173 16 12 ""
;29 Edit 0x54030080 0x200 168 189 16 12 ""
;30 Edit 0x54030080 0x200 168 205 16 12 ""
;82 Edit 0x54030080 0x200 128 268 40 13 ""
;83 Edit 0x54030080 0x200 128 284 40 13 ""
;84 Edit 0x54030080 0x200 128 300 40 13 ""
;90 Edit 0x54030080 0x200 128 316 40 13 ""
;93 Edit 0x54030080 0x200 128 332 40 13 ""
;94 Edit 0x54030080 0x200 128 348 40 13 ""
;98 Edit 0x54030080 0x200 232 28 40 13 ""
;100 Edit 0x54030080 0x200 232 44 40 13 ""
;102 Edit 0x54030080 0x200 232 60 40 13 ""
;104 Edit 0x54030080 0x200 232 76 40 13 ""
;1 Button 0x54030001 0x4 228 356 48 14 "OK"
;2 Button 0x54030000 0x4 280 356 48 14 "Cancel"
;96 Static 0x54000000 0x0 60 20 48 13 "$ Amount $"
;7 Static 0x54000000 0x0 172 28 40 13 "Visa"
;8 Static 0x54000000 0x0 172 44 40 13 "Mastercard"
;9 Static 0x54000000 0x0 172 60 40 13 "Amex"
;10 Static 0x54000000 0x0 172 76 40 13 "Discover"
;16 Static 0x54000000 0x0 144 125 20 12 "$100"
;17 Static 0x54000000 0x0 144 141 20 12 "$50"
;18 Static 0x54000000 0x0 144 157 20 12 "$20"
;19 Static 0x54000000 0x0 144 173 20 12 "$10"
;22 Static 0x54000000 0x0 144 189 20 12 "$5"
;23 Static 0x54000000 0x0 144 205 20 12 "$2"
;24 Static 0x54000000 0x0 144 221 20 12 "$1"
;25 Static 0x54000000 0x0 185 125 20 12 "$1"
;26 Static 0x54000000 0x0 185 141 20 12 "$0.50"
;27 Static 0x54000000 0x0 185 157 20 12 "$0.25"
;28 Static 0x54000000 0x0 185 173 20 12 "$0.10"
;29 Static 0x54000000 0x0 185 189 20 12 "$0.05"
;30 Static 0x54000000 0x0 185 205 20 12 "$0.01"
;85 Static 0x54000000 0x0 172 268 28 13 "AJP"
;86 Static 0x54000000 0x0 172 284 28 13 "JAV"
;87 Static 0x54000000 0x0 172 300 28 13 "DJH"
;88 Static 0x54000000 0x0 172 316 28 13 "DRK"
;89 Static 0x54000000 0x0 172 332 28 13 "JAD"
;91 Static 0x54000000 0x0 172 348 28 13 "CNS"
;95 Static 0x54000000 0x0 20 20 48 13 "Check #"
;99 Static 0x54000000 0x0 276 28 48 13 "Cost of Goods"
;101 Static 0x54000000 0x0 276 44 48 13 "Gift Sold"
;103 Static 0x54000000 0x0 276 60 48 13 "Gift Redeemed"
;105 Static 0x54000000 0x0 276 76 48 13 "Sales Tax"
;97 Button 0x54020007 0x0 228 12 100 88 "Accounting Information"
;92 Button 0x54020007 0x0 120 252 100 117 "Account Totals[]"
;67 Button 0x54020007 0x0 8 12 100 357 "Check Totals"
;66 Button 0x54020007 0x0 120 108 100 133 "Cash Totals"
;65 Button 0x54020007 0x0 120 12 100 88 "Credit Card Totals"
"
;25 Static 0x54030080 0x200 185 125 20 12 ""
;26 Static 0x54030080 0x200 185 141 20 12 ""
;27 Static 0x54030080 0x200 185 157 20 12 ""
;28 Static 0x54030080 0x200 185 173 20 12 ""
;29 Static 0x54030080 0x200 185 189 20 12 ""
;30 Static 0x54030080 0x200 185 205 20 12 ""
;85 Static 0x54000000 0x0 172 268 28 13 "AJP"
;86 Static 0x54000000 0x0 172 284 28 13 "JAV"
;87 Static 0x54000000 0x0 172 300 28 13 "DJH"
;88 Static 0x54000000 0x0 172 316 28 13 "DRK"
;89 Static 0x54000000 0x0 172 332 28 13 "JAD"
;91 Static 0x54000000 0x0 172 348 28 13 "CNS"
;95 Static 0x54000000 0x0 20 20 48 13 "Check #"
;99 Static 0x54000000 0x0 276 28 48 13 "Cost of Goods"
;101 Static 0x54000000 0x0 276 44 48 13 "Gift Sold"
;103 Static 0x54000000 0x0 276 60 48 13 "Gift Redeemed"
;105 Static 0x54000000 0x0 276 76 48 13 "Sales Tax"
;97 Button 0x54020007 0x0 228 12 100 88 "Accounting Information"
;92 Button 0x54020007 0x0 120 252 100 117 "Account Totals[]"
;67 Button 0x54020007 0x0 8 12 100 357 "Check Totals"
;66 Button 0x54020007 0x0 120 108 100 133 "Cash Totals"
;65 Button 0x54020007 0x0 120 12 100 88 "Credit Card Totals"
;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 IDOK
,case IDCANCEL
ret 1
#2
Thank you. Will be fixed in next QM beta. Now you cannot use $ in static or button text if it is followed by a number or $ or ' or ` or {.

Or you can fix it now:

Open
\System\Dialogs\Dialog Editor\DE_Apply

Find
Code:
Copy      Help
,if(!st.replacerx("(?m)^[ ;]*BEGIN DIALOG *[]((.+[])+)[ ;]*END DIALOG *([])?([ ;]*DIALOG EDITOR: [^[]]+ *([])?)?" da.s 4)) st.addline(da.s)

Replace with
Code:
Copy      Help
,int x y
,x=findrx(st "(?m)^[ ;]*BEGIN DIALOG *[]((.+[])+)[ ;]*END DIALOG *([])?([ ;]*DIALOG EDITOR: [^[]]+ *([])?)?" 0 0 y)
,if(x>=0) st.replace(da.s x y)
,else st.addline(da.s)

This is how to edit System functions: QM Dialogs


Forum Jump:


Users browsing this thread: 1 Guest(s)