On Thursday 10 February 2005 08:56, Roger Stringer wrote:

> This has been discussed many times in the past, so check the archives for
> the various solution.

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 your 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/

Reply via email to