tget for chinese characters

tget for chinese characters

Postby alfredlam » Thu Nov 23, 2017 4:33 am

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
alfredlam
 
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Postby Antonio Linares » Thu Nov 23, 2017 6:57 am

We are going to review it

thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: tget for chinese characters

Postby alfredlam » Fri Nov 24, 2017 4:59 am

Thanks Antonio very much looking forward to see.
alfredlam
 
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Postby nageswaragunupudi » Fri Nov 24, 2017 3:05 pm

it can work like TEDIT.PRG

Where is the TEDIT.PRG please ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10206
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Re: tget for chinese characters

Postby nageswaragunupudi » Fri Nov 24, 2017 3:58 pm

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
nageswaragunupudi
 
Posts: 10206
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: tget for chinese characters

Postby richard-service » Fri Nov 24, 2017 4:20 pm

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 v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 730
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: tget for chinese characters

Postby nageswaragunupudi » Fri Nov 24, 2017 4:57 pm

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
User avatar
nageswaragunupudi
 
Posts: 10206
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: tget for chinese characters

Postby alfredlam » Mon Nov 27, 2017 4:50 am

Exactly, Richard would you please amend the Tget.prg again ?
alfredlam
 
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Postby nageswaragunupudi » Mon Nov 27, 2017 5:23 am

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
nageswaragunupudi
 
Posts: 10206
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: tget for chinese characters

Postby richard-service » Mon Nov 27, 2017 9:13 am

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 v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 730
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: tget for chinese characters

Postby nageswaragunupudi » Mon Nov 27, 2017 9:33 am

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
User avatar
nageswaragunupudi
 
Posts: 10206
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: tget for chinese characters

Postby alfredlam » Mon Nov 27, 2017 1:09 pm

Seems has been discussed the same issue on
viewtopic.php?f=3&t=22508&hilit=chinese+get
alfredlam
 
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Re: tget for chinese characters

Postby richard-service » Tue Nov 28, 2017 5:03 pm

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 v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 730
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: tget for chinese characters

Postby alfredlam » Wed Nov 29, 2017 1:04 am

Dear Richard.
How to set XP Themes( CP950/BIG5 ) ?
Thanks and regards
alfred
alfredlam
 
Posts: 14
Joined: Tue Aug 21, 2012 2:13 am

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 11 guests