I want to bind events to words of generated text in a windows form
application.
For instance, when mouse enters the rectangle bounding box of a word
inside the text, a method is called that uses the corresponding word
(for instance displaying a translation of the word in a separate
component).
This is easily achieved in TCL/TK using text tags, but I was not able
to find the counterpart in Windows.Form.
Of course, I can compute and store bounding boxes coordinates for each
word I display in the text area, then implement a algorithm that
associates mouse coordinates within the text area to the corresponding
bbox.
But I'm looking for something much simpler...
Any ideas ?
application.
For instance, when mouse enters the rectangle bounding box of a word
inside the text, a method is called that uses the corresponding word
(for instance displaying a translation of the word in a separate
component).
This is easily achieved in TCL/TK using text tags, but I was not able
to find the counterpart in Windows.Form.
Of course, I can compute and store bounding boxes coordinates for each
word I display in the text area, then implement a algorithm that
associates mouse coordinates within the text area to the corresponding
bbox.
But I'm looking for something much simpler...
Any ideas ?