PtMultiText - Pt_CB_ACTIVATE not working

Hi,
I’m trying to highlight the (whole) line of text within a PtMultiText widget
when it is clicked on by the user. So I thought I’d set a Pt_CB_ACTIVATE
call back and use the cursor position to find the line number, use the line
number to find the start and end point and then change the back ground
colour of the text.
The trouble is the Pt_CB_ACTIVATE callback is never called.
I have PT_SELECTABLE set , I’ve tried changing the text to PT_CURSOR_VISIBLE
and PT_EDITABLE but no joy.
I cant get it to work on a multiText, ( on a simple PtText it works fine )
Is there some thing else I should be setting ?
Or better still is there a better way of highlighting the line of text
clicked on ?

Thanks
Lindsey

“Lindsey Joyce” <lindsey@grapevinetelecom.co.uk> wrote in message
news:9flg1u$g4o$1@inn.qnx.com

Hi,
I’m trying to highlight the (whole) line of text within a PtMultiText
widget
when it is clicked on by the user. So I thought I’d set a Pt_CB_ACTIVATE
call back and use the cursor position to find the line number, use the
line
number to find the start and end point and then change the back ground
colour of the text.
The trouble is the Pt_CB_ACTIVATE callback is never called.
I have PT_SELECTABLE set , I’ve tried changing the text to
PT_CURSOR_VISIBLE
and PT_EDITABLE but no joy.
I cant get it to work on a multiText, ( on a simple PtText it works
fine )
Is there some thing else I should be setting ?
Or better still is there a better way of highlighting the line of text
clicked on ?

On further investigation it seems that I am not aloud to have the flags set
to Pt_SELECT_NOREDRAW , which means that I can get the call back to work
(sometimes ) but I get a horible flicker every time I click on the text box.
ALSO the call back just seems to stop getting called, I,m not (knowingly)
setting any flags for this widgets ( or its parents ) in code, just changing
the colour of lines of text.
Any ideas ?

Lindsey