Solved

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

Posted on 2003-11-23
5
489 Views
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
0
Comment
Question by:jazzygm
[X]
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
5 Comments
 
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 ;-)

0
 
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 torry.net

in this package there's TPieLedLabel with source that's a good solution for your job
http://homepages.borland.com/torry/vcl/packs/middle/pietools.zip

F68 ;-)
0
 

Author Comment

by:jazzygm
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!
0
 
LVL 22

Accepted Solution

by:
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 ;-)
0
 

Author Comment

by:jazzygm
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!
0

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 (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
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