THALER Laurent wrote:

>  
>
>>-----Message d'origine-----
>>De : Palm Developer Forum digest 
>>[mailto:[EMAIL PROTECTED]]
>>Envoy� : mercredi 11 septembre 2002 09:03
>>� : palm-dev-forum digest recipients
>>Objet : palm-dev-forum digest: September 10, 2002
>>
>>
>>    
>>
>
>  
>
>>Subject: Re: display of password as "******"
>>From: "Aaron Ardiri" <[EMAIL PROTECTED]>
>>Date: Tue, 10 Sep 2002 14:19:54 +0200
>>X-Message-Number: 13
>>
>>    
>>
>>>Probably easiest way is to define a custom font with * as default
>>>character and no other glyphs. Then just set the field to 
>>>      
>>>
>>use this font
>>    
>>
>>>and all characters are printed as *.
>>>      
>>>
>>  you know, thats probably the best solution i have seen for this!
>>
>>--
>>Aaron Ardiri
>>CEO - CTO
>>Mobile Wizardry
>>http://www.mobilewizardry.com/
>>
>>
>>    
>>
>
>there is even more simple if you agree to display little squares instead of *
>       FldSetFont(GetObjectPtr(MainPasswordField), symbol11Font);                     
>  
>       SetFieldTextFromString (GetObjectPtr(MainPasswordField),
>                                Prefs.Password);
>
>if you really want to display *, you have to define your own font
>1) use xFONT http://members.tripod.com/pericak/ to generate the font file and a font 
>resource (for example NFNT 128)
>2) in AppStart
>       MemHandle fontHandle;
>       FontPtr font;   
>       
>       fontHandle = DmGetResource('NFNT', 128 );
>       font = MemHandleLock ( fontHandle );
>       FntDefineFont ( (FontID)128, font );
>       MemHandleUnlock ( fontHandle );
>
>3) use the font defined as 128
>       FldSetFont(GetObjectPtr(MainPasswordField), (FontID)128);                      
>  
>       SetFieldTextFromString (GetObjectPtr(MainPasswordField),
>                                Prefs.Password);
>
>
>  
>
question....does the FONT resource have to be LOCKED for the duration of 
the font usage. (looks as though you are unlocking it right away....and 
where is the DmReleaseResource(fontHandle).....

second...I did this. (don't know how to specify a "default" glyph. So I 
created a font file with all glyphs as "*").
The display does indeed display "*" for the characters.

So, how DO you specify a default glyph so I don't have to draw a "*" for 
each character?



-- 
------------------------------------------------------------------------
James Barwick
CTO
James Barwick
VP Technology

????????????
?????????????????
Sentient Solutions Pte. Ltd
79 Kim Yam Rd
Singapore 239374
Sentient Health Japan, KK
Aoyama Palacio Tower 11F
3-6-7 Kita-Aoyama
Minatu-ku, Tokyo 107-0061

????????????????????
?107-0061 ???????3-6-7
????????? 11?
Tel: (65) 9740-1501
Fax: (65) 6238-6779
mailto:[EMAIL PROTECTED]
http://www.sentienthealth.com
Tel: (03) 5778-7524
Fax: (03) 5778-7676
mailto:[EMAIL PROTECTED]
http://www.sentienthealth.com
Tel: (03) 5778-7524
Fax: (03) 5778-7676
mailto:[EMAIL PROTECTED]
http://www.sentienthealth.com
------------------------------------------------------------------------


_
_



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to