Hi
I'm slowly battling with this, so thought I'd ask in case anyone can shed any light on it more quickly than my efforts!
I'm trying to use a Custom UI Layer to implement highlighting of bookmarks. Using the demos, I can see how to create rectangles for highlighting, but I'm struggling with how to highlight the right areas if the bookmarked text flows over more than one line.
Presumably, I need to be able to find if it runs over more than one line, and get the dimensions from the start to the end and create a rectangle for that.
Then get the dimensions from the start of the next line until the first of 1. the end of the bookmark or 2. the end of the line.
Repeat until the end is found (or the UILayerUpdateContext runs out of visible boxes).
Thanks for any help! The documentation is a bit thin in this area...
Charlie
I'm slowly battling with this, so thought I'd ask in case anyone can shed any light on it more quickly than my efforts!
I'm trying to use a Custom UI Layer to implement highlighting of bookmarks. Using the demos, I can see how to create rectangles for highlighting, but I'm struggling with how to highlight the right areas if the bookmarked text flows over more than one line.
Presumably, I need to be able to find if it runs over more than one line, and get the dimensions from the start to the end and create a rectangle for that.
Then get the dimensions from the start of the next line until the first of 1. the end of the bookmark or 2. the end of the line.
Repeat until the end is found (or the UILayerUpdateContext runs out of visible boxes).
Thanks for any help! The documentation is a bit thin in this area...
Charlie