Page 1 of 2

tget for chinese characters

PostPosted: Thu Nov 23, 2017 4:33 am
by alfredlam
Hi Antonio,
How to amend the TGET.PRG so that it can work like TEDIT.PRG
for two characters support (Chinese, etc.) without set the FW_SETUNICODE(.T.).

Regards and thanks

Re: tget for chinese characters

PostPosted: Thu Nov 23, 2017 6:57 am
by Antonio Linares
We are going to review it

thanks

Re: tget for chinese characters

PostPosted: Fri Nov 24, 2017 4:59 am
by alfredlam
Thanks Antonio very much looking forward to see.

Re: tget for chinese characters

PostPosted: Fri Nov 24, 2017 3:05 pm
by nageswaragunupudi
it can work like TEDIT.PRG

Where is the TEDIT.PRG please ?

Re: tget for chinese characters

PostPosted: Fri Nov 24, 2017 3:41 pm
by Enrico Maria Giordano
source\classes\edit.prg

:-)

EMG

Re: tget for chinese characters

PostPosted: Fri Nov 24, 2017 3:58 pm
by nageswaragunupudi
Enrico Maria Giordano wrote:source\classes\edit.prg

:-)

EMG

Can we see an example of using Unicode text in Edit control without setting FW_SetUnicode( .T. ) ?
Thanks in advance.

Re: tget for chinese characters

PostPosted: Fri Nov 24, 2017 4:20 pm
by richard-service
HI
I think TEdit.prg not work Unicode and 2 bytes Chinese.
Long time ago, FWH not support Unicode and 2 bytes Chinese. so I modify TGet.prg to support 2 bytes Chinese(not unicode and not support XP Themes)
When I run MiniGUI, I found TEdit replace TGet within MiniGUI. so I suggestion Antonio to make TEdit.prg , not I think not work and return use TGet.prg( modify support Chinese )
But I don't know new FWH TEdit support 2 bytes Chinese and Use or not FW_SetUnicode( .T. )

Re: tget for chinese characters

PostPosted: Fri Nov 24, 2017 4:57 pm
by nageswaragunupudi
TEdit control uses Windows native Edit control. It can only handle either ANSI or Unicode. There is nothing we can do about it.

so I modify TGet.prg to support 2 bytes Chinese(not unicode and not support XP Themes)

This is what is required.

Re: tget for chinese characters

PostPosted: Mon Nov 27, 2017 4:50 am
by alfredlam
Exactly, Richard would you please amend the Tget.prg again ?

Re: tget for chinese characters

PostPosted: Mon Nov 27, 2017 5:23 am
by nageswaragunupudi
Mr alfredlam

Richard's help would be highly useful.

Meanwhile would you mind sharing with us how with Edit control you are able to enter Chinese characters? We may try to make TGet behave like Edit control. Are you setting any Chinese codepage like CP950 or BIG5 ?

Re: tget for chinese characters

PostPosted: Mon Nov 27, 2017 9:13 am
by richard-service
alfredlam wrote:Exactly, Richard would you please amend the Tget.prg again ?

Mr alfredlam

I will send TGet.prg to Mr.Rao
This TGet.prg not support XP Themes.

If you want to use CP950 or BIG5 of Chinese, I think you will get Unicode Chinese word problem.

Re: tget for chinese characters

PostPosted: Mon Nov 27, 2017 9:33 am
by nageswaragunupudi
Mr Richard

Thanks

If you want to use CP950 or BIG5 of Chinese, I think you will get Unicode Chinese word problem.


Mr Alfredlam does not want to use Unicode.
Yes, Unicode application is not compatible with BIG5 or CP950.

Can you please clarify as to how can we test entering Chinese characters into your TGet class? We do not have Chinese keyboard. I believe the on-screen Chinese keyboard of Windows enters only utf8 characters.

Re: tget for chinese characters

PostPosted: Mon Nov 27, 2017 1:09 pm
by alfredlam
Seems has been discussed the same issue on
viewtopic.php?f=3&t=22508&hilit=chinese+get

Re: tget for chinese characters

PostPosted: Tue Nov 28, 2017 5:03 pm
by richard-service
alfredlam wrote:Seems has been discussed the same issue on
viewtopic.php?f=3&t=22508&hilit=chinese+get

Mr alfredlam

Yes. I think you'll meet end user input Unicode word and appear "???". Because you use old TGet 2byes solution not XP Themes( CP950/BIG5 )

Re: tget for chinese characters

PostPosted: Wed Nov 29, 2017 1:04 am
by alfredlam
Dear Richard.
How to set XP Themes( CP950/BIG5 ) ?
Thanks and regards
alfred