Solved

TEdit

Posted on 1998-11-22
6
375 Views
Last Modified: 2010-04-04
How to make TEdit but descends from TGraphicControl.
0
Comment
Question by:joely
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:scrapdog
ID: 1347623
For what purpose?
0
 
LVL 1

Accepted Solution

by:
sassas081597 earned 50 total points
ID: 1347624
TGraphicControl cannot catch the events as TWinControls can. However you can create a TLabel which looks like TEdit and use the Form's events to change the label. The only problem is that you cannot have the label focused - so your control must be alone on the form to be shure that the form sends correct commands:
procedure MyForm.OnKeyPress(...)
begin
   grLabel.Caption:=grLabel.Caption+Key;
end;
If you are interested in a TLabel that looks like TEdit - give a comment and I'll send you the WWW-Page where it can be found.
0
 

Author Comment

by:joely
ID: 1347625
I just want this component looks transparent.
Do you have any idea ?

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:sassas081597
ID: 1347626
What do you mean for transparent?
This is a TGraphicControl - you either draw something or set the transparent property to TRUE and write down only the text (however you can draw borders too). So please explain what would you like to have more precizely.

SASSAS
0
 

Author Comment

by:joely
ID: 1347627
I want the descends from TGraphicControl can receive input like TEdit. So if I put TImage as a background, I can see the background through this component. TEdit can't handle this because TEdit is a descends from TWinControl.
0
 
LVL 1

Expert Comment

by:sassas081597
ID: 1347628
Another time, the TGraphicControl cannot be in Focuse - so you should have another component to receive focuse and to send some message to TGraphicControl. The best way is to use TForm for that purpose as shown in the answer. However you can use other controls which can receive focus.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 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

19 Experts available now in Live!

Get 1:1 Help Now