Dear Antonio, All Users
I test build Sample\ToolBar4.prg code.
First Prg code is BIG5. Look Title Chinese word not work Red box
Button Text and Tooltip Text working fine.

so I change Prg code BIG5 to DOS-UTF-8 and save as file. Run it
Look Title Chinese word Working fine Red box
But Button Chinese Text not work and Tooltip Text working fine.

Any idea or solution?
I test build Sample\ToolBar4.prg code.
First Prg code is BIG5. Look Title Chinese word not work Red box
Button Text and Tooltip Text working fine.

so I change Prg code BIG5 to DOS-UTF-8 and save as file. Run it
Look Title Chinese word Working fine Red box
But Button Chinese Text not work and Tooltip Text working fine.

// Win32 TReBar and TToolBar sample into DIALOGS
#include "FiveWin.ch"
REQUEST HB_Lang_ZH, HB_CODEPAGE_UTF8
function Main()
local oWnd, oReBar, oToolBar1, oToolBar2, oImageList1, oImageList2
DEFINE DIALOG oWnd NAME "DIALOG" TITLE "FWH - Testing Win32 ReBars & Toolbars-測試"
ACTIVATE DIALOG oWnd ;
ON INIT CREABARRA( @oImageList1, @oImageList2, oWnd )
oImageList1:End()
oImageList2:End()
return nil
FUNCTION CREABARRA( oImageList1, oImageList2, oWnd )
LOCAL oReBar, oToolBar1, oToolBar2
// First we build the imagelists with all the bitmaps
oImageList1 = TImageList():New( 32, 32 ) // width and height of bitmaps
oImageList1:AddMasked( TBitmap():Define( "new",, oWnd ), nRGB( 255, 0, 255 ) )
oImageList1:AddMasked( TBitmap():Define( "open",, oWnd ), nRGB( 255, 0, 255 ) )
oImageList1:AddMasked( TBitmap():Define( "search",, oWnd ), nRGB( 255, 0, 255 ) )
oImageList1:AddMasked( TBitmap():Define( "print",, oWnd ), nRGB( 255, 0, 255 ) )
oImageList2 = TImageList():New( 32, 32 ) // width and height of bitmaps
oImageList2:AddMasked( TBitmap():Define( "internet",, oWnd ), nRGB( 255, 0, 255 ) )
oImageList2:AddMasked( TBitmap():Define( "keys",, oWnd ), nRGB( 255, 0, 255 ) )
oImageList2:AddMasked( TBitmap():Define( "quit",, oWnd ), nRGB( 255, 0, 255 ) )
// Now we create the rebar
oReBar = TReBar():New( oWnd )
// Now we create the toolbars and add the buttons
oToolBar1 = TToolBar():New( oReBar, 50, 50, oImageList1 )
oToolBar1:AddButton( { || MsgInfo( "New" ) }, "新增", "開啟新增專案" )
oToolBar1:AddButton( { || MsgInfo( "Open" ) }, "開啟", "開啟專案" )
oToolBar1:AddSeparator()
oToolBar1:AddButton( { || MsgInfo( "Search" ) }, "搜尋", "搜尋" )
oToolBar1:AddButton( { || MsgInfo( "Print" ) }, "列印一張報表", "列印" )
oToolBar2 = TToolBar():New( oReBar, 50, 50, oImageList2 )
oToolBar2:AddButton( { || MsgInfo( "Upgrade" ) }, "Search for new versions",;
"更新..." )
oToolBar2:AddButton( { || MsgInfo( "Users" ) }, "Users management", "使用者" )
oToolBar2:AddSeparator()
oToolBar2:AddButton( { || oWnd:End() }, "離開系統應用程式", "離開" )
// We set the widths for each toolbar
oToolBar1:nWidth = 290
oToolBar2:nWidth = 300
// Now we insert the toolbars into the rebar
oReBar:InsertBand( oToolBar1 )
oReBar:InsertBand( oToolBar2 )
RETURN .T.
//---------------------------------------------------------------------------------------------------------------------//
INIT PROCEDURE inv_init
HB_LangSelect( "zh" )
HB_SetCodePage( "UTF8" )
HB_CDPSELECT( "UTF8" )
Fw_SetUnicode( .T. )
SET _3DLook ON
SET DELETE ON
SET SoftSeek On
SET DATE FORMAT "YYYY.MM.DD"
SET OPTIMIZE ON
RETURN NIL
Any idea or solution?
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
Richard
Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit
MySQL v8.0
Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit


