Hi Jean,
Thanks for your help.
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);
     }
}


Regards,

Dan Hod
R&D Manager
The PalmMate Team

Gotta Palm? Gotta visit www.PalmMate.com



----- Original Message -----
From: Jean Ostrem <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: ��� ����� 09 ������ 1999 20:55
Subject: Fwd: Re: Where can we find the "IntlGlue.lib" to use with CW?


> Dan,
>
> Did you really call TxtCharIsCntrl or did you call
> TxtGlueCharIsCntrl? The PalmOSGlue.lib declares TxtGlueCharIsCntrl.
>
> I mention only because this because prerelease versions of the
> documentation might have led you to believe that TxtCharIsCntrl would
> work, but it is not the case. See approximately chapter 18 of that
> Reference.pdf that is on the CodeWarrior R6 CD.
>
>
> >Date: Tue, 9 Nov 1999 13:08:30 +0200
> >From: "Dan Hod" <[EMAIL PROTECTED]>
> >Subject: Re: Where can we find  the "IntlGlue.lib" to use with CW?
> >To: <[EMAIL PROTECTED]>
> >Cc: "Ken Krugler" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >
> >Hi Ken,
> >Some more info...
> >TxtCharIsCntrl crashes on OS 2.0
> >TxtCharIsHardKey does not crash on OS 2.0 but does not return the right
> >answer.
> >
> >I Checked it on a Palm Professional device.
> >
> >Regards,
> >
> >Dan Hod
> >R&D Manager
> >The PalmMate Team
> >
> >Gotta Palm? Gotta visit www.PalmMate.com
>
>

Reply via email to