Page 1 of 1

How to change SBUTTON to support FW_SetUnicode()

Posted: Wed Jun 20, 2018 2:34 am
by dutch
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,

Re: How to change SBUTTON to support FW_SetUnicode()

Posted: Wed Jun 20, 2018 8:40 am
by nageswaragunupudi
But I am seeing Thai characters on the TSButton in the above image.

Re: How to change SBUTTON to support FW_SetUnicode()

Posted: Wed Jun 20, 2018 9:37 am
by dutch
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.

Re: How to change SBUTTON to support FW_SetUnicode()

Posted: Wed Jun 20, 2018 10:41 am
by hmpaquito
Así ya se entiende mejor.

Re: How to change SBUTTON to support FW_SetUnicode()

Posted: Thu Jun 21, 2018 7:05 am
by nageswaragunupudi
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

Re: How to change SBUTTON to support FW_SetUnicode()

Posted: Thu Jun 21, 2018 9:06 am
by dutch
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.