Page 3 of 3

Re: CHINESE IN GET

PostPosted: Fri Oct 21, 2011 2:11 am
by ukservice
Antonio,

Any update?.

Thank you.,

Re: CHINESE IN GET

PostPosted: Fri Oct 21, 2011 6:06 am
by Antonio Linares
John,

We are working on it, not ready yet

Re: CHINESE IN GET

PostPosted: Fri Oct 21, 2011 8:32 am
by richard-service
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.

Re: CHINESE IN GET

PostPosted: Thu Dec 08, 2011 9:07 pm
by ukservice
Antonio,

Is there any update?.

Thanks.

Re: CHINESE IN GET

PostPosted: Thu Dec 08, 2011 9:14 pm
by IBTC
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.

Re: CHINESE IN GET

PostPosted: Fri Dec 16, 2011 12:08 pm
by ukservice
up.

Re: CHINESE IN GET

PostPosted: Fri Jan 13, 2012 11:12 pm
by ukservice
Hello,

Any update?

Thanks.

Re: CHINESE IN GET

PostPosted: Mon Jan 16, 2012 1:04 pm
by ukservice
Hello again,

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

Thank you.

Re: CHINESE IN GET

PostPosted: Wed Jan 18, 2012 3:21 am
by richard-service
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.

Re: CHINESE IN GET

PostPosted: Wed Jan 18, 2012 11:17 am
by Antonio Linares
John,

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

Re: CHINESE IN GET

PostPosted: Wed Jan 18, 2012 11:36 am
by ukservice
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

Re: CHINESE IN GET

PostPosted: Wed Jan 18, 2012 1:03 pm
by Antonio Linares
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.

Re: CHINESE IN GET

PostPosted: Wed Jan 18, 2012 1:27 pm
by ukservice
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.

Re: CHINESE IN GET

PostPosted: Wed Jan 18, 2012 2:12 pm
by IBTC
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.

Re: CHINESE IN GET

PostPosted: Wed Jan 18, 2012 2:30 pm
by Antonio Linares
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