Gabor Szabo wrote:
I am using Wx::HtmlWindow to display some HTML.
I'd like to add a search functionality and highlighting the found text.
I thought I'll need to use wxHtmlWindow::SelectWord
the docs say:
void SelectWord(const wxPoint& pos)
but I still don't understand where do I get wxPoint from?
To be honest, I am not sure how you could implement the
search functionality either. I think the answer are related:
you could add wxHtmlWindow::GetInternalRepresentation() to
wxHtmlWindow, then traverse the cell structure searching for
the text; once you find the cell containing the text, you can
use its accessors to get the position/select the text.
Regards,
Mattia