Solved

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

Posted on 1998-09-10
4
137 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Magic Software info 18 142
Working with hours 3 72
DBCtrlGrid, Delphi, Scroll 7 32
Delphi android app hide keyboard 3 40
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

735 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