How can I know the position where the mouse button clicks over a Static Text control?

That's it... I need specifically to know what line of the static text control the left mouse button was clicked on.

Thanks in advance
Jaime
skelAsked:
Who is Participating?
 
duke_nConnect With a Mentor Commented:
You should insert in OnMouseDown event of label code that will divide Y by (label.font.size+distance_between_lines).
sorry, I would write the code ,but i don't know how to find the distance_between_lines.
0
 
333Commented:
Use OnMouseDown event of Form, Label etc.
0
 
kjtengCommented:
What is static text control? Is it a memo (since you mentioned "line")?
0
 
duke_nCommented:
//tO KJTENJ
static text control is alomost like label(It's on the additional page of the vcl(at least in D3)). However I didn't find the option for wordwrap in this control, so I suppose skel meant label
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.