Solved

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

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now