|
From: <ss...@ma...> - 2021-01-09 14:17:14
|
sample.prg
--------------------
#include "hwgui.ch"
REQUEST HB_CODEPAGE_UTF8
Function Main
//LOCAL oMainWindow, oEdit, e1 := ""
LOCAL oMainWindow, oEdit, e1 := chr(0xe5)+chr(0xa4)+chr(0xb1)
hb_CdpSelect( "UTF8" )
//HWG_SETUTF8()
//hwg_msgInfo(hb_utf8Len( e1 ))
INIT WINDOW oMainWindow MAIN TITLE "Test" ;
AT 200,0 SIZE 260,200
@ 20,50 GET oEdit VAR e1 PICTURE "XXXXXXXXXXXXXXX" SIZE 200, 26
hwg_SetFocus( oEdit:handle )
//
ACTIVATE WINDOW oMainWindow;
ON ACTIVATE {|| hwg_msgInfo('begin') }
RETURN Nil
--------------------------------------------------------------
Harbour 3.2.0dev (r2002042012)
Embarcadero C++ 7.00 for Win32
HWGUI: 2021-01-06 13:40 UTC+0100 Wilfried Brunken DF7BE
The old version of hwgui (2016-02-24 12:55 UTC+0300 Alexander Kresin <al...@be...>)
is can type chinese word of utf8.
but new version can't type chinese word.
Can you fix it? Please~~
|