At 12:00am -0700 00-09-29, Palm Developer Forum digest wrote:
>Subject: a Memo Pad [or text field] question
>From: Paul Nevai <[EMAIL PROTECTED]>
>Date: Thu, 28 Sep 2000 08:24:44 -0400 (EDT)
>X-Message-Number: 26
>
>Dear Fellow Palm Programmers:
>
>Here is a challenging question. I would prefer a solution using the published
>SDK w/o using private functions in Field.c. I could [did] solve the problem
>with Field.c but that is risky [and complicated] since Field.c may change in
>future OSs.
>
>For simplicity, let's talk about Memo Pad. I define a ScreenLine as the
>collection of characters which show up as one line on the screen. Of course,
>this depends on the display font.
>
>Is there a way to determine how many ScreenLines will a given record take up?
>
>Is there a way to determine the insertion point position of the beginning
>of the 25th ScreenLines from the current insertion point [without moving
>there]?
>
>Thanks!
>
>Best regards, Paul [pedit: http://home.columbus.rr.com/nevai/palm/ ]
What's wrong with using FldWordWrap? You can walk the string, calling
this routine repeatedly, until you reach the end of the text (or the
25th line).
-- 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/