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()
..........
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
dutch wrote:Dear Richard,
Do you mean you use UESTUDIO (Chinese Simplifield) version?
Regards,
Dutch
#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
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?
- Code: Select all Expand view
#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®ards,
Dutch
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 46 guests