New FTDN September/Septiembre 2015 (FWH 15.09)

New FTDN September/Septiembre 2015 (FWH 15.09)

Postby Antonio Linares » Sat Sep 26, 2015 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby ShumingWang » 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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby richard-service » Sun Sep 27, 2015 4:15 am

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

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby Antonio Linares » Sun Sep 27, 2015 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby dutch » Mon Sep 28, 2015 4: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
image uploading
Regards,
Dutch

FWH 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby Antonio Linares » Mon Sep 28, 2015 6:56 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby richard-service » Mon Sep 28, 2015 1: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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby cnavarro » Mon Sep 28, 2015 9: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
User avatar
cnavarro
 
Posts: 6552
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby ShumingWang » Tue Sep 29, 2015 5:29 am

Runs OK!
TKS!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby richard-service » Tue Sep 29, 2015 6: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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby Antonio Linares » Tue Sep 29, 2015 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby richard-service » Wed Sep 30, 2015 5: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: Select all  Expand view  RUN

// 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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby Antonio Linares » Wed Sep 30, 2015 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2015 (FWH 15.09)

Postby Antonio Linares » Wed Sep 30, 2015 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to WhatsNew / Novedades

Who is online

Users browsing this forum: No registered users and 7 guests