tget for chinese characters

alfredlam
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

tget for chinese characters

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 42604
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 44 times
Been thanked: 88 times
Contact:

Re: tget for chinese characters

Post by Antonio Linares »

We are going to review it

thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
alfredlam
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Post by alfredlam »

Thanks Antonio very much looking forward to see.
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: tget for chinese characters

Post by nageswaragunupudi »

it can work like TEDIT.PRG

Where is the TEDIT.PRG please ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: tget for chinese characters

Post 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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
richard-service
Posts: 808
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Has thanked: 2 times
Contact:

Re: tget for chinese characters

Post 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. )
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: tget for chinese characters

Post 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.
Regards

G. N. Rao.
Hyderabad, India
alfredlam
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Post by alfredlam »

Exactly, Richard would you please amend the Tget.prg again ?
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: tget for chinese characters

Post 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 ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
richard-service
Posts: 808
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Has thanked: 2 times
Contact:

Re: tget for chinese characters

Post 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.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: tget for chinese characters

Post 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.
Regards

G. N. Rao.
Hyderabad, India
alfredlam
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Post by alfredlam »

Seems has been discussed the same issue on
viewtopic.php?f=3&t=22508&hilit=chinese+get
User avatar
richard-service
Posts: 808
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Has thanked: 2 times
Contact:

Re: tget for chinese characters

Post 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 )
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
alfredlam
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Post by alfredlam »

Dear Richard.
How to set XP Themes( CP950/BIG5 ) ?
Thanks and regards
alfred
Post Reply