Overlay of TEdit (alpha blend? or clear background) for Timer App

Posted on 2003-11-23
Last Modified: 2010-04-05
I want to create a simple timer, but I want the display to appear like a digital clock, such that you can see the grey template of 88:88:88 and the actual display numbers being a much darker overlay.  I thought of having two TEdit boxes, the first with a grey font of 88:88:88 and the second with black font and a clear background, but I don't seem to be able to give the TEdit control a see-through background.  Annoted/Explained Code preferable
Question by:jazzygm
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 9806960
i'd go to another way....
A Timagelist with 11 images (for 0 to 9 in led style and the : sign) then a panel with 8 Timage.
On timer read the Time String value (for example 13:00:12) and assign to the same pos image  the correspondent image from imagelist....It's just an idea, but so you can customize your images, and so your digital numbers, as you prefere.....

F68 ;-)

LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 9807034
btw to use your idea should be bettere to use a led styled label....there're lots of led label components on the web and expecially on

in this package there's TPieLedLabel with source that's a good solution for your job

F68 ;-)

Author Comment

ID: 9807088
It seems wasteful of resources though, I would have thought that maybe subclassing the Tedit and fiddling with its background properties to allow it to be transparent would be better, but I have no idea how to!
LVL 22

Accepted Solution

Ferruccio Accalai earned 75 total points
ID: 9807118
so go to a more simple way....use 2 tlabel, the first with font color clInactiveCaption.
The second exactly over the first with font color clblack and transparent property to true....the easiest way...

F68 ;-)

Author Comment

ID: 9811851
Thanks, i REALLY should have thought of that myself, I think I got hit with a stupid stick at the start of the weekend!

Featured Post

Technology Partners: 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL ( and MongoDB (…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

705 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