At 12:00am -0800 01-01-16, Palm Developer Forum digest wrote:
>Subject: Select Multi-byte Charactor in a Field
>From: Wang Yan-FYA009 <[EMAIL PROTECTED]>
>Date: Mon, 15 Jan 2001 14:47:04 -0800
>X-Message-Number: 68
>
>I'm writing a Chinese charactor viewer on Palm OS 4.0. When use pen to
>select Chinese charactors(2 bytes a charactor) in a field, palm OS always
>try to display one byte char one by one. How do I solve that?

If you're writing a viewer, then you have a lot of control over how 
things are displayed. If you're creating a full-blown OS hack to 
handle Chinese (which sounds like the case, since you want to be able 
to edit Chinese in a field), then you've got a lot of work ahead of 
you.

Note that there are already several of these Chinese system hacks for 
Palm OS (both simplified and traditional), which you can find at any 
of the Palm software web sites.

>Which system
>traps are used inside the FldHandleEvent to select each charator

TxtGetNextChar, TxtGetPreviousChar, and TxtSetNextChar.

>and
>determind the width of charactors?

FntCharsWidth

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to