On Tuesday 25 May 2004 10:28 am, Dana Long wrote:
> I'm still working on masking a password field and am now forced to deal
> with the user selecting the keyboard modal form and entering text that
> way.
global var
----------
MemHandle passwordFontH;
In StartApplication()
---------------------
FontPtr fontP;
/* define special password font */
if ((passwordFontH = DmGetResource('NFNT', PasswordFont))) {
if ((fontP = MemHandleLock(passwordFontH))) {
FntDefineFont((FontID)128, fontP);
}
}
In StopApplication()
--------------------
if (passwordFontH) {
MemHandleUnlock(passwordFontH);
DmReleaseResource(passwordFontH);
}
Where you define you field
--------------------------
FldSetFont(fldp, (FontID)128);
*or* if you use textTableItem style, in your LoadItem()
-------------------------------------------------------
TblSetItemFont(tableP, row, column, (FontID)128);
In your .rcp
------------
FONT ID PasswordFont FONTID 128 "password-font.txt"
#use any resource ID you want for PassWordFont
password-font.txt
-----------------
fontType 36864
ascent 9
descent 2
GLYPH ' '
------
------
-#-#--
--#---
##-##-
--#---
-#-#--
------
------
------
------
GLYPH -1
------
------
-#-#--
--#---
##-##-
--#---
-#-#--
------
------
------
------
--
/* Chris Faherty <[EMAIL PROTECTED]> */
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/