Solved

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

Posted on 1998-09-10
4
135 Views
Last Modified: 2010-04-06
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
0
Comment
Question by:skel
  • 2
4 Comments
 
LVL 2

Expert Comment

by:333
ID: 1339253
Use OnMouseDown event of Form, Label etc.
0
 
LVL 1

Accepted Solution

by:
duke_n earned 50 total points
ID: 1339254
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
 
LVL 2

Expert Comment

by:kjteng
ID: 1339255
What is static text control? Is it a memo (since you mentioned "line")?
0
 
LVL 1

Expert Comment

by:duke_n
ID: 1339256
//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

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question