Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi exception 7 68
Connection between libmysql.dll and MySQL Versions 7 112
find a node in VST 2 70
CheckListBox usage 3 71
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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