CHINESE IN GET

Re: CHINESE IN GET

Postby ukservice » Fri Oct 21, 2011 2:11 am

Antonio,

Any update?.

Thank you.,
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: CHINESE IN GET

Postby Antonio Linares » Fri Oct 21, 2011 6:06 am

John,

We are working on it, not ready yet
regards, saludos

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

Re: CHINESE IN GET

Postby richard-service » Fri Oct 21, 2011 8:32 am

Hi,
Try to set Non Chinese OS that run Chinese App(FWH). You will be know our problem.
Other version XP to install Chinese word module

by ShumingWang » Thu Oct 20, 2011 11:04 am

If your operating system is XP, you first need to install the following way 'East Asian language support package'.

1, go to Control Panel - Date, Time, Language and Regional Options - Regional and Language Options - Languages ​​tab, check the Install files for East Asian Languages ​​- Advanced tab, select the first drop-down box Chinese (PRC), and then check the following list of items related to all Chinese - OK. Will be asked to insert the Windows XP installation CD to install East Asian language pack. Then, to make the program the system to display Chinese or Chinese website, should also be in the IE browser's top menu on the Tools - Internet Options - General tab, click Add in the bottom of Languages ​​and select Chinese [zh] - OK.

2, the installation is complete, call the Chinese input method: Please go to Control Panel - Date, Time, Language and Regional Options - Regional and Language Options - Languages ​​tab - Details - Settings tab - Add - In the Input Language drop-down box select Chinese (PRC) - in the Keyboard layout / IME drop-down box to select the input method to use - OK - but also again in the lower part of the key Settings window to set shortcut keys to facilitate the rapid call for future input method - OK.

3, If the above list is not on your favorite input method, such as five-stroke input method, etc., please download the plug-in software from other websites or IME built-in input, external input directly from the Start - All Programs called, built-in IME press into the 2-point method to add IME list is selected.
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: 765
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: CHINESE IN GET

Postby ukservice » Thu Dec 08, 2011 9:07 pm

Antonio,

Is there any update?.

Thanks.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: CHINESE IN GET

Postby IBTC » Thu Dec 08, 2011 9:14 pm

Antonio,

ukservice wrote:Is there any update?.


We also need this feature urgent and would be very happy if it will be available soon. Many thanks.
Best Regards,
Ruediger Alich

---
HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
User avatar
IBTC
 
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany

Re: CHINESE IN GET

Postby ukservice » Fri Dec 16, 2011 12:08 pm

up.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: CHINESE IN GET

Postby ukservice » Fri Jan 13, 2012 11:12 pm

Hello,

Any update?

Thanks.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: CHINESE IN GET

Postby ukservice » Mon Jan 16, 2012 1:04 pm

Hello again,

Any update?. I have a customer interested in our software but he needs to use chinese in get.

Thank you.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: CHINESE IN GET

Postby richard-service » Wed Jan 18, 2012 3:21 am

ukservice wrote:Hello again,

Any update?. I have a customer interested in our software but he needs to use chinese in get.

Thank you.

Now, my solution only support TGet for Chinese input. If your customer no need or later Unicode, we have modify TGet code.
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: 765
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: CHINESE IN GET

Postby Antonio Linares » Wed Jan 18, 2012 11:17 am

John,

Actually the only solution is to use FWH Class TEdit instead of Class TGet
regards, saludos

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

Re: CHINESE IN GET

Postby ukservice » Wed Jan 18, 2012 11:36 am

Antonio,

There is not info at Manual or Wiki about class TEdit().

Also, why don´t you replace TGET by standard Windows TEdit?.

Anyway, It does not work.

See sample:

Code: Select all  Expand view
// Testing two characters support GETs (China, etc.)

#include "FiveWin.ch"

function Main()

   local oDlg, oEdit, cGet := "a normal GET          "


   DEFINE DIALOG oDlg TITLE "Testing two characters support for GETs" ;
      COLOR 0, GetSysColor( 15 ) SIZE 600,600


   oEdit = TEdit():New( 2, 3,, oDlg, 200, 10 )
   // METHOD New( nRow, nCol, bSetGet, oWnd, nWidth, nHeight ) CLASS TEdit

   oEdit:SetText( "Hello" )


   @ 5,3 GET cGet OF oDlg


   @ 6, 4 BUTTON "Class" ACTION MsgInfo( oEdit:GetText(), "Get Text" ) ;
      SIZE 80, 23

   ACTIVATE DIALOG oDlg CENTERED

return nil



[IMG=http://img141.imageshack.us/img141/6915/errortget.png][/IMG]

Uploaded with ImageShack.us
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: CHINESE IN GET

Postby Antonio Linares » Wed Jan 18, 2012 1:03 pm

John,

1. No, it is not documented yet, anyhow is a simple wrapper for a standard Windows Edit control.

2. If we do that we will break lots of FWH users applications. No way.

3. The written text is unicode and you can use non-unicode functions to display it. In example: Instead of using Windows API MessageBoxA(), MessageBoxW() has to be used. Also, instead of using GetWindowTextA(), GetWindowTextW() has to be used. Windows translates many of its functions to <name>A or <name>W depending if unicode is used or not.
regards, saludos

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

Re: CHINESE IN GET

Postby ukservice » Wed Jan 18, 2012 1:27 pm

Antonio,

Thanks for reply.

Anyway, I need to use GET as the user should use chinese chars in every get.

Maybe Richard could help you to modify TGET class for all the comunity.

Thanks.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: CHINESE IN GET

Postby IBTC » Wed Jan 18, 2012 2:12 pm

Antonio Linares wrote:2. If we do that we will break lots of FWH users applications. No way.


But maybe it would be possible making the necessary changes optional? If somebody wants to use Unicode in there applications, they can call e.g. the FWH function SetUnicode(.T.). So nothing will break in other FWH users applications. IMO in future more and more FWH users needs Unicode support.

Or maybe this will be a solution: Making the dialog with the GETs with Harbour QT as an Windows DLL file and call this DLL out of the existing FWH application.
Best Regards,
Ruediger Alich

---
HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
User avatar
IBTC
 
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany

Re: CHINESE IN GET

Postby Antonio Linares » Wed Jan 18, 2012 2:30 pm

I don't know what may have changed in our computers but now copying and pasting the "RED TEA..." that we had with unicode in this thread, now it is not longer properly pasted in notepad, neither resources editor, etc

Please try this change, those that can properly copy and paste:

Code: Select all  Expand view

   @ 6, 4 BUTTON "Class" ACTION ShowText( oEdit:hWnd ) ;
      SIZE 80, 23

...

#pragma BEGINDUMP

#include <windows.h>

HB_FUNC( SHOWTEXT )
{
   LPWSTR pText[ 200 ];
   
   GetWindowTextW( ( HWND ) hb_parnl( 1 ), pText, 200 );
   MessageBoxW( 0, pText, L"Info", MB_ICONINFORMATION );
}

#pragma ENDDUMP  
 
regards, saludos

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

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 69 guests