FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index WhatsNew / Novedades New FTDN September/Septiembre 2015 (FWH 15.09)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Sat Sep 26, 2015 08:24 AM

September 2015

  • Unicode support extended to all controls. Existing applications
    turn into multi-lingual unicode application by inserting one line
    of code in the Main function

FW_SetUnicode( .t. )

This being a major revision, we request the users to provide
feedback to help improvements.

  • It is the ulitmate aim that a single application can simultaneously
    have different ANSI and Unicode windows at the sametime and also
    one window/dialog to contain some Ansi and some Unicode controls.
    But for now it is desirable to have the entire application either as
    Ansi or as Unicode. However even in a Unicode application, every effort
    has been makde to maintain full backward compatibility of Ansi text
    opetaions including accented characters. Any feedback on this aspect
    will be highly appreciated and promptly responded.

  • Fix: Edit.prg: fixed excess release of font when font clause is used.

  • Enhancement: Unicode support for common messageboxesm MsgInfo(),
    MsgAlert(), MsgStop(), MsgYesNo(), MsgNoYes(), MsgRetryCancel(),
    MsgAbout(), MsgRun, MsgWait(). MsgText and Title can be any
    combination of UTF8/ANSI. Buttons are shown in the default
    language installed.

  • MsgGet() supports unicode display and edit if FW_SetUnicode()
    is set to TRUE.

  • MemoEdit() supports unicode display and multilingual edit
    if FW_SetUnicode() is set to TRUE

  • Enhancement: TEdit control supports multiline mode.

  • Supports multi-lingual edit from keyboard / paste.
  • Supports password clause

  • Enhancement: GetTextWidth(). Optionally text height can be
    retrieved in the 4th parameter if passed by reference.

  • New: functions CompareString( nLocaleID, cUtfStr1, cUtfStr2 ) and
    CompareStringEx( cLocaleName, cUtfStr1, cUtfStr2 ) adopting Win API
    for comparing UTF8 stings,

  • New: DATA ncLocalID of TXBrwColumn: If provided UTF8 data in
    a column in an arry can be sorted like other columns

  • Enhancement: XBrowse: Reasonable functionality for Unicode Incremental
    Seeks, etc.

August 2015 (Revd Build)

1) Fix: Wrong printing and display of accented characters in some cases
is fixed.

2) Clipborad: Method SetText() fully supports Unicode text also.
New Method GetUnicodeText() copies unicode or ansi text from the clipborad

3) XBrowse supports Pasting of unicode text into cells.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Sat Sep 26, 2015 11:41 AM

Up!
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
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Sun Sep 27, 2015 04:15 AM

Hi Antonio,
Could you please offer a sample EXE for test?

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: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Sun Sep 27, 2015 07:01 AM

Richard,

Please provide me a PRG that you want to be built using unicode and I will send you the EXE :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Mon Sep 28, 2015 04:09 AM
Dear Antonio,

I've still got problem when compile in "samples\testuni2.prg" as picture. I choose UTF-8 and save already.
What is the problem?

image uploading
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: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Mon Sep 28, 2015 06:56 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Mon Sep 28, 2015 01:31 PM

Antonio,

I already sent to you sample ANSI PRG to your EMail.
Please check it.
Thanks a lot.

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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Mon Sep 28, 2015 09:14 PM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Tue Sep 29, 2015 12:05 AM
Richard,

Here you have the EXE for testchinese-u8.prg:

https://bitbucket.org/fivetech/fivewin-contributions/downloads/testchinese-u8.zip

Please try it and let me know how it goes for you, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Tue Sep 29, 2015 05:29 AM

Runs OK!
TKS!
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
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Tue Sep 29, 2015 06:43 AM

Dear Antonio,

Run it OK.
I just sent to you V2, please compile it to EXE.

This version include Code and Resource Dialog.
UTF-8 PRG and UTF-8 RC

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: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Tue Sep 29, 2015 07:51 AM

Richard,

I get these errors. Please fix them and send it again, thanks

Compiling 'testchinese-u8.prg' and generating preprocessed output to 'testchinese-u8.ppo'...
5 errors

No code generated.
testchinese-u8.prg(233) Error E0030 Syntax error "syntax error at 'OREPORT'"
testchinese-u8.prg(235) Error E0030 Syntax error "syntax error at 'TITLE'"
testchinese-u8.prg(236) Error E0030 Syntax error "syntax error at 'TITLE'"
testchinese-u8.prg(238) Error E0030 Syntax error "syntax error at 'END'"
testchinese-u8.prg(249) Warning W0001 Ambiguous reference 'NI'
testchinese-u8.prg(250) Warning W0001 Ambiguous reference 'NI'
testchinese-u8.prg(251) Warning W0001 Ambiguous reference 'NI'
testchinese-u8.prg(251) Warning W0001 Ambiguous reference 'NI'
testchinese-u8.prg(255) Error E0030 Syntax error "syntax error at 'REPORT'"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Wed Sep 30, 2015 05:50 AM
Antonio,

I make this sample, PRG and RC Save UTF-8 style.

http://www.fivetech.com.tw/downloads/TestChinese-u8-V3.rar

Code (fw): Select all Collapse
// Add this to your resources RC file

#ifdef __FLAT__
   1 24 "./WinXP/WindowsXP.Manifest"
#endif

new      BITMAP "./bitmaps/32x32/new.bmp"
quit     BITMAP "./bitmaps/32x32/quit.bmp"

TEST DIALOG 20, 41, 356, 86
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "測試  Unicode 繁體中文(Traditional Chinese)-例如堃,叙"
FONT 12, "細明體"
{
 EDITTEXT 201, 68, 7, 170, 12
 EDITTEXT 202, 68, 22, 99, 12
 CONTROL "存檔", 301, "BUTTON", BS_USERBUTTON | WS_TABSTOP, 302, 8, 46, 18
 CONTROL "取消", 302, "BUTTON", BS_USERBUTTON | WS_TABSTOP, 302, 29, 46, 18
 CONTROL "列印", 303, "BUTTON", BS_USERBUTTON | WS_TABSTOP, 302, 50, 46, 18
 LTEXT "中文地址", 101, 5, 7, 60, 12
 LTEXT "中文姓名", 102, 5, 22, 60, 12
}
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: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Wed Sep 30, 2015 07:49 AM

Richard,

When I try to build your examples using bcc7 I get this error:

Error testchinese-u8.RC 1 2: Bad character in source input

And if I try to build it using VS2013 then I get:

testchinese-u8.RC(4) : error RC2135 : file not found: 1
testchinese-u8.RC(8) : error RC2135 : file not found: quit
testchinese-u8.RC(10) : error RC2135 : file not found: TEST

There is something wrong with the RC file. Not sure if it is caused for using unicode into it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN September/Septiembre 2015 (FWH 15.09)
Posted: Wed Sep 30, 2015 08:32 AM
It seems as cgrc.exe has to be used instead of brc32.exe:

http://blog.spreendigital.de/2008/10/14/unicode-in-resource-files/
regards, saludos

Antonio Linares
www.fivetechsoft.com