FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To who use Chinese Language (another problem)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To who use Chinese Language (another problem)
Posted: Mon Oct 27, 2008 03:58 PM

I use FWH 8.04 and xHarbour.com 11/07.
I would like to show menu in Chinese Language.
- Source code file must be which format ANSI or Unicode or ??????
- Can I copy Chinese Text from Google Dictionary to paste in Source Code?
- Can I use MingLiU (standard windows vista font file)?

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
To who use Chinese Language (another problem)
Posted: Tue Oct 28, 2008 01:42 AM

Hi

I develop AP within Chinese in Taiwan

Regards,

Richard

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To who use Chinese Language (another problem)
Posted: Tue Oct 28, 2008 03:22 AM

Dear Richard,

Can you give me an idea about Chinese Language with FWH&xHarbour (as above posted)?

Thanks&Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
To who use Chinese Language (another problem)
Posted: Tue Oct 28, 2008 04:12 AM
Hi

You mean this

DEFINE WINDOW ::oWnd             ;
            FROM 0, 0 TO 38, 130      ;
            TITLE "營運管理系統"        ;
             MENU ::Build_FW_Menu()

//-------------------------------------------------------------------------//

METHOD Build_FW_Menu() CLASS TMisPawn32

LOCAL oMenu

      MENU oMenu
    
         MENUITEM "基本管理"
            MENU
               MENUITEM "客戶類別資料維護"                   ;    && M000011001
                         RESOURCE "MN_CUSTTYPE"              ;
                         MESSAGE "執行客戶類別資料維護作業"  ;
                         ACTION ::RunCustType()
               MENUITEM "來電類型資料設定"                   ;    && M000011002
                         RESOURCE "MN_CallPhoneMsf"          ;
                         MESSAGE "執行來電類型資料設定作業"  ;
                         ACTION ::RunCallPhoneMsf()
..........



Regards,

Richard
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To who use Chinese Language (another problem)
Posted: Tue Oct 28, 2008 05:08 AM

Dear Richard,

Yes, exactly waht I want but I've got problem with source code file.
- Should It be ANSI format or Unicode or UTF-08?
- What kind of Font?
- Could you give me an example?

Thanks&Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 59
Joined: Thu May 17, 2007 08:27 AM
To who use Chinese Language (another problem)
Posted: Tue Oct 28, 2008 06:55 AM

HI Dutch:

Microsoft Applocal can make it.

I work for Both Chinese Code (cht&chs).

--
Best Regards


kokoo KAO

-------------

best regards

kokoo Kao
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To who use Chinese Language (another problem)
Posted: Tue Oct 28, 2008 03:59 PM

Dear kokookao & Richard,

I try Microsoft Applocale. I can try Chinese in notepad (ANSI format) but when I change keyboard to English, the Chinese word is appear. I don't know while.

What is source editor both of you use to type Chinese?

Regads,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 12:59 AM

Dutch,
If your windows installed Chinese fonts, app.exe from ascii code source ,could show Chinese words with windows default fonts .
You can use any editors to write harbour/clipper/fwh source code prg,rc .
Best Regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 02:20 AM
ShumingWang wrote:Dutch,
If your windows installed Chinese fonts, app.exe from ascii code source ,could show Chinese words with windows default fonts .
You can use any editors to write harbour/clipper/fwh source code prg,rc .
Best Regards!
Shuming Wang


Hi Shuming,

You're right!!


Regards,

Richard
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 05:17 AM
Dear All,

I've problem when I type Chinese, it show well. But when I change keyboard from Chinese to English, Chinese word is disappear.

Another case is after type Chinese word and save, it shows like Chinese is Unicode and it will be lost after save in ANSI format.

I use notepad to test it.
How can I fix it?


Thanks&Regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 11:10 AM

Hi

I use Multi-Edit and UEStudio work fine within Vista Chinese( CHT ).

Regards,

Richard

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 11:23 AM

Dear Richard,

Do you mean you use UESTUDIO (Chinese Simplifield) version?

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 12:20 PM
dutch wrote:Dear Richard,

Do you mean you use UESTUDIO (Chinese Simplifield) version?

Regards,
Dutch


Hi

No, I use UESTUDIO English version within Vista HP version( CHT ).
I input any Chinese word no problem.

Regards,

Richard
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 12:59 PM
Dear Richard,

I try as this code but it still shows wrong charactor. Could you test this code and let me know the result pls. Does it show correctly?

#include 'Fivewin.ch'

Function Main
local oWnd, oFont
local oTxtFile, nLines, n, cLines, aFonts

aFonts := {}

if file('FONT.INI')
   oTxtFile := TTxtFile():New('FONT.INI')
   nLines   := oTxtFile:RecCount()

   for n := 1 to nlines
        cLines := oTxtFile:ReadLine()
        if n = 6 .or. n = 7 .or. n = 8
            aadd( aFonts , if(cLines='.T.',.T.,.F.) )
        elseif n = 14
            aadd( aFonts , cLines )
        else
            aadd( aFonts , val(cLines) )
        end
       oTxtFile:Skip()
   next
   oTxtFile:Close()
   
end

   
DEFINE FONT oFont NAME "Microsoft JhengHei" SIZE 0, -12

   oFont:hFont := CreateFont( aFonts )


DEFINE WINDOW oWnd           ;
            FROM 0, 0 TO 38, 130      ; 
            TITLE "營運管理系統"        ; 
             MENU Build_FW_Menu() 

     oWnd:oFont := oFont

ACTIVATE WINDOW oWnd 
return nil
//-------------------------------------------------------------------------// 

Function Build_FW_Menu()

LOCAL oMenu 

      MENU oMenu 
    
         MENUITEM "基本管理" 
            MENU 
               MENUITEM "客戶類別資料維護"                   ;    && M000011001 
                         RESOURCE "MN_CUSTTYPE"              ; 
                         MESSAGE "執行客戶類別資料維護作業"  
                         
               MENUITEM "來電類型資料設定"                   ;    && M000011002 
                         RESOURCE "MN_CallPhoneMsf"          ; 
                         MESSAGE "執行來電類型資料設定作業"  
	ENDMENU
ENDMENU
return oMenu


Thanks&regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
To who use Chinese Language (another problem)
Posted: Wed Oct 29, 2008 02:32 PM
dutch wrote:Dear Richard,

I try as this code but it still shows wrong charactor. Could you test this code and let me know the result pls. Does it show correctly?

#include 'Fivewin.ch'

Function Main
local oWnd, oFont
local oTxtFile, nLines, n, cLines, aFonts

aFonts := {}

if file('FONT.INI')
   oTxtFile := TTxtFile():New('FONT.INI')
   nLines   := oTxtFile:RecCount()

   for n := 1 to nlines
        cLines := oTxtFile:ReadLine()
        if n = 6 .or. n = 7 .or. n = 8
            aadd( aFonts , if(cLines='.T.',.T.,.F.) )
        elseif n = 14
            aadd( aFonts , cLines )
        else
            aadd( aFonts , val(cLines) )
        end
       oTxtFile:Skip()
   next
   oTxtFile:Close()
   
end

   
DEFINE FONT oFont NAME "Microsoft JhengHei" SIZE 0, -12

   oFont:hFont := CreateFont( aFonts )


DEFINE WINDOW oWnd           ;
            FROM 0, 0 TO 38, 130      ; 
            TITLE "營運管理系統"        ; 
             MENU Build_FW_Menu() 

     oWnd:oFont := oFont

ACTIVATE WINDOW oWnd 
return nil
//-------------------------------------------------------------------------// 

Function Build_FW_Menu()

LOCAL oMenu 

      MENU oMenu 
    
         MENUITEM "基本管理" 
            MENU 
               MENUITEM "客戶類別資料維護"                   ;    && M000011001 
                         RESOURCE "MN_CUSTTYPE"              ; 
                         MESSAGE "執行客戶類別資料維護作業"  
                         
               MENUITEM "來電類型資料設定"                   ;    && M000011002 
                         RESOURCE "MN_CallPhoneMsf"          ; 
                         MESSAGE "執行來電類型資料設定作業"  
	ENDMENU
ENDMENU
return oMenu


Thanks&regards,
Dutch


Hi

Your sample code work fine in my OS.

http://www.fivetech.com.tw/downloads/test-dutch.rar

Regards,

Richard
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit