I have a problem with the Hb_Uchar () function !

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

I have a problem with the Hb_Uchar () function !

Post by Claudio Ricardo »

When i do: Hb_Uchar (0x0041) for U+0041, or Hb_Uchar (0x05D0) for U+05D0 show the correct character in a TextBox
but if I use Hb_Uchar (0x233B4) for U+233B4, or Hb_Uchar (0x13190) for U+13190 show the wrong character :shock:
I use: SET Language To Spanish and SET CodePage To Unicode and take unicode value from: https://unicode-table.com/es/
What am I doing wrong ? Any can helpme please.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: I have a problem with the Hb_Uchar () function !

Post by Claudio Ricardo »

I solve this installing NewGardening TT font and set this in TextBox... he have > U+13000.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: I have a problem with the Hb_Uchar () function !

Post by andyglezl »

No se si hablemos de lo mismo, pero yo selecciono algún Font y caractér en Word,
y lo copio y pego en el editor de mi .prg
*---------------------------------------------------------------------------------------------------
I do not know if we talk about the same, but I select a Font and character in Word,
and I copy and paste it in the editor of my .prg
.
.

Code: Select all

		@ 024 , 023 LABEL LB_Salir  OF Win_1 VALUE "" WIDTH 15 HEIGHT 15 FONT "Wingdings" SIZE 12 CENTERALIGN ;
.
.
imagen_2021-09-17_230055.png
imagen_2021-09-17_230055.png (78.78 KiB) Viewed 589 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: I have a problem with the Hb_Uchar () function !

Post by Claudio Ricardo »

Gracias Andy !!!
Lo que estaba haciendo mal es que esos caracteres que necesitaba no están en las fonts normales de Windows,
instalé una .ttf que si los tiene y con eso lo solucioné, pero tendré que incluir la fuente esa con el programa.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
Post Reply