>       I have a noneditable multiline text field with some text in 
>it. The field
>has also got a vertical scrollbar. I want to highlight the line in which the
>user taps. Is there any way doing this.

I would do this by trapping the penDown event before it gets to 
field. You can determine the height of each line of text with a call 
to FntLineHeight(), and thus derive which line was tapped on.

Selecting the bounds of the tapped line is a bit harder. You have to 
use the tapped line number as the index into the FieldType.lines 
array of LineInfoType structures, which will probably generate a 
Poser warning re accessing private UI data structures. Make sure you 
handle the cases of FieldType.lines being NULL, and the calculated 
line index being >= FldGetVisibleLines(fldP).

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