How to change SBUTTON to support FW_SetUnicode()

How to change SBUTTON to support FW_SetUnicode()

Postby dutch » Wed Jun 20, 2018 2:34 am

Dear All,

I try to add FW_SetUnicode(.T.) in New() Method in TSBUTTON.PRG but it still doesn't support display UNICODE.

Image

How do I change to support Unicode?

Thank you in advance,
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: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to change SBUTTON to support FW_SetUnicode()

Postby nageswaragunupudi » Wed Jun 20, 2018 8:40 am

But I am seeing Thai characters on the TSButton in the above image.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to change SBUTTON to support FW_SetUnicode()

Postby dutch » Wed Jun 20, 2018 9:37 am

Dear Mr.Rao,
nageswaragunupudi wrote:But I am seeing Thai characters on the TSButton in the above image.


It is unreadable charactor. It must show "ว๊อคอิน" but it show incorrect and unreadable.
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: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to change SBUTTON to support FW_SetUnicode()

Postby hmpaquito » Wed Jun 20, 2018 10:41 am

Así ya se entiende mejor.
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: How to change SBUTTON to support FW_SetUnicode()

Postby nageswaragunupudi » Thu Jun 21, 2018 7:05 am

TSButton has its own text rendering routines which do not support Unicode.

Available alternatives:
1) Use TBtnBmp instead of TSButton
or
2) Modify TSButton library
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to change SBUTTON to support FW_SetUnicode()

Postby dutch » Thu Jun 21, 2018 9:06 am

Dear Mr.Rao,

nageswaragunupudi wrote:TSButton has its own text rendering routines which do not support Unicode.

Available alternatives:
1) Use TBtnBmp instead of TSButton
or
2) Modify TSButton library


I have changed almost normal button to TBtnBmp but in some case, I have to use TSButton.

Another question, Can we make TBtnBmp to DEFAULT (Clause) button?

Thank you in advance.
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: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 78 guests