Dan,

>You were right, there is a Glue function called TxtGlueCharIsCntrl, but
>there isn't TxtGlueCharIsHardKey.
>I implemented it in the following way (please tell me if there is a better
>way?)
>
>Boolean
>TxtGlueCharIsHardKey(
> Word inModifiers,
> WChar inChr)
>{
>     DWord value;
>     Err  err = FtrGet(sysFtrCreator, sysFtrNumIntlMgr, &value);
>
>     if (err == 0) {
>          return TxtCharIsHardKey(inModifiers, inChr);
>     }
>     else {
>          // copied from "CharAttr.h" - ChrIsHardKey(c)
>          return (((inChr) >= hardKeyMin) && ((inChr) <= hardKeyMax)) ||
>((inChr) == calcChr);
>     }
>}

There is no TxtGlueCharIsHardKey because it's a macro that doesn't 
call any Text Mgr routines, and it doesn't have to fix bugs 
w/previous versions of the OS (the two main reasons for other Text 
Mgr glue routines). So you can safely use the TxtCharIsHardKey macro 
on all versions of the OS

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)

Reply via email to