Solved

TEdit

Posted on 1998-11-22
6
376 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
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…

772 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