How to display special characters in a button ?

How to display special characters in a button ?

Postby HunterEC » Wed Sep 01, 2010 6:23 pm

Guys:

My customers use Windows in it's English version but the official languages in our country are Spanish & English. When I try to use spanish characters in a button or in a function like MsgNoYes(), MsgGet(), etc. they do not display correctly. How can I fix this ? Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: How to display special characters in a button ?

Postby ukoenig » Wed Sep 01, 2010 7:15 pm

Image

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to display special characters in a button ?

Postby HunterEC » Thu Sep 02, 2010 6:15 am

Uwe:

I tried the way that you suggested but still have the same weird results: no special characters displayed. I'm trying to display the following characters:
1. chr(168) - ¿
2. chr(164) - ñ
3. chr(165) - Ñ
4. chr(163) - ú
5. chr(162) - ó
6. chr(161) - í
7. chr(160) - á
8. chr(130) - é

On buttons & the ALERT function they display weird characters not the intended ones.

FWH 10.6 & Windows XP Pro SP3

Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: How to display special characters in a button ?

Postby ukoenig » Thu Sep 02, 2010 8:04 am

The needed CHR-Values :

Image

Everything You need You can find :

=>>>>> http://www.lookuptables.com

http://www.asciitable.com

Code: Select all  Expand view

 #include "FiveWin.ch"

static oWnd

function Main()
local oBtn
Local oButtFont := TFont():New("Arial",0,-16,.F.,.T.,0,0,0,.F. )

DEFINE WINDOW oWnd TITLE "Testing ChooseFont"

@ 5, 15 BUTTON oBtn PROMPT "&Test : " +  CHR(0191) + " , " + ;
     CHR(0241) + " , " + ;
     CHR(0209) + " , " + ;
     CHR(0250) + " , " + ;
     CHR(0243) + " , " + ;
     CHR(0237) + " , " + ;
     CHR(0225) + " , " + ;
     CHR(0233)  OF oWnd ;
ACTION ( oBtn:GetFont(),;
oBtn:SelFont(), MsgInfo( oBtn:oFont:lBold ) ) ;  
SIZE 280, 50 FONT oButtFont

ACTIVATE WINDOW oWnd

oButtFont :End()

return nil
 


Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Rick Lipkin and 81 guests