> -----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);
--
Rien ne me r�siste... Je sais tout faire... Et je le fais mieux que tout le monde !
Faites comme moi, soyez le meilleur ! :-)
Laurent THALER
http://www.thalers.org
mailto:[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/