Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unicode in version 2305
#9
This works. Tested in Unicode and in ANSI mode.
Function Dialog14
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "1201 1301"
str e3 e4
e3="一二三"
if(!ShowDialog("Dialog14" &Dialog14 &controls)) ret

;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"
;1201 Edit 0x54030080 0x200 14 14 96 14 ""
;1301 Edit 0x54030080 0x200 14 40 96 14 ""
;3 Button 0x54032000 0x0 20 92 48 14 "Button"
;END DIALOG
;DIALOG EDITOR: "" 0x2030005 "*" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,str s;s.getwintext(id(1201 hDlg));s.setwintext(id(1301 hDlg))
,case IDOK
,case IDCANCEL
ret 1

But in ANSI mode, if the text was entered by the user, then edit2 is ???. In Unicode mode works well. In QM 2.2.1 ???.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)